com.sun.identity.liberty.ws.security
クラス SessionSubject

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.Subject
      上位を拡張 com.sun.identity.federation.message.FSSubject
          上位を拡張 com.sun.identity.liberty.ws.security.SessionSubject

public class SessionSubject
extends FSSubject

The SessionSubject class represents a liberty subject with associated session status.


フィールドの概要
 
クラス com.sun.identity.federation.message.FSSubject から継承されたフィールド
_idpNameIdentifier
 
クラス com.sun.identity.saml.assertion.Subject から継承されたフィールド
_nameIdentifier, _subjectConfirmation
 
コンストラクタの概要
SessionSubject(Element subjectElement)
          Constructs a SessionSubject object from a DOM element.
SessionSubject(NameIdentifier nameIdentifier, IDPProvidedNameIdentifier idpNameIdentifier)
          Constructs a SessionSubject object from a NameIdentifier object and a IDPProvidedNameIdentifier object.
SessionSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation, IDPProvidedNameIdentifier idpNameIdentifier)
          Constructs a SessionSubject object from a NameIdentifier object, SubjectConfirmation and IDPProvidedNameIdentifier object.
SessionSubject(SubjectConfirmation subjectConfirmation)
          Constructs a SessionSubject object from a SubjectConfirmation object.
 
メソッドの概要
 String toXMLString()
          Returns a String representation of the element.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of the <Subject> element.
 
クラス com.sun.identity.federation.message.FSSubject から継承されたメソッド
getIDPProvidedNameIdentifier, setIDPProvidedNameIdentifier
 
クラス com.sun.identity.saml.assertion.Subject から継承されたメソッド
createNameIdentifier, createSubjectConfirmation, equals, getNameIdentifier, getSubjectConfirmation, removeNameIdentifier, removeSubjectConfirmation, setNameIdentifier, setSubjectConfirmation, toString, toString
 

コンストラクタの詳細

SessionSubject

public SessionSubject(NameIdentifier nameIdentifier,
                      SubjectConfirmation subjectConfirmation,
                      IDPProvidedNameIdentifier idpNameIdentifier)
               throws FSMsgException,
                      SAMLException
Constructs a SessionSubject object from a NameIdentifier object, SubjectConfirmation and IDPProvidedNameIdentifier object.

パラメータ:
nameIdentifier - NameIdentifier object.
subjectConfirmation - SubjectConfirmation object.
idpNameIdentifier - IDPProvidedNameIdentifier object.
例外:
FSMsgException - if idpNameIdentifier is null.
SAMLException - if both nameIdentifier and subjectConfirmation are null.

SessionSubject

public SessionSubject(NameIdentifier nameIdentifier,
                      IDPProvidedNameIdentifier idpNameIdentifier)
               throws FSMsgException,
                      SAMLException
Constructs a SessionSubject object from a NameIdentifier object and a IDPProvidedNameIdentifier object.

パラメータ:
nameIdentifier - NameIdentifier object.
idpNameIdentifier - IDPProvidedNameIdentifier object.
例外:
FSMsgException - if idpNameIdentifier is null.
SAMLException - if nameIdentifier is null.

SessionSubject

public SessionSubject(Element subjectElement)
               throws FSMsgException,
                      SAMLException
Constructs a SessionSubject object from a DOM element. which has already been built into a DOM.

パラメータ:
subjectElement - An Element representing DOM tree for Subject object
例外:
SAMLException - if can not create the object of NameIdentifier or SubjectConfirmation inside the DOM element.
FSMsgException - if it could not process the Element properly, implying that there is an error in the sender or in the element definition.

SessionSubject

public SessionSubject(SubjectConfirmation subjectConfirmation)
               throws SAMLException
Constructs a SessionSubject object from a SubjectConfirmation object.

パラメータ:
subjectConfirmation - SubjectConfirmation object to be added to the object.
例外:
SAMLException - if subjectConfirmation is null.
メソッドの詳細

toXMLString

public String toXMLString()
                   throws FSMsgException
Returns a String representation of the element.

オーバーライド:
クラス FSSubject 内の toXMLString
戻り値:
a string containing the valid XML for this element By default name space name is prepended to the element name example <saml:Subject>.
例外:
FSMsgException - if could not create a String representation of this element.

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS)
                   throws FSMsgException
Returns a String representation of the <Subject> element.

オーバーライド:
クラス FSSubject 内の toXMLString
パラメータ:
includeNS - if true prepends all elements by their Namespace name example <saml:Subject>
declareNS - if true includes the namespace within the generated XML.
戻り値:
a string containing the valid XML for this element.
例外:
FSMsgException - if could not create a String representation of this element.