Class SubjectImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectImpl
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_ID_ELEMENTstatic StringENCRYPTED_ID_ELEMENTstatic StringNAME_ID_ELEMENTstatic StringSUBJECT_CONFIRMATION_ELEMENTstatic StringSUBJECT_ELEMENT
-
Constructor Summary
Constructors Constructor Description SubjectImpl()Default constructorSubjectImpl(String xml)This constructor is used to buildSubjectobject from a XML string.SubjectImpl(Element element)This constructor is used to buildSubjectobject from a block of existing XML that has already been built into a DOM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseIDgetBaseID()Returns the identifier inBaseIDformatEncryptedIDgetEncryptedID()Returns the encrypted identifierNameIDgetNameID()Returns the identifier inNameIDformatListgetSubjectConfirmation()Returns a list of subject confirmationsbooleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetBaseID(BaseID value)Sets the identifier inBaseIDformatvoidsetEncryptedID(EncryptedID value)Sets the encrypted identifiervoidsetNameID(NameID value)Sets the identifier inNameIDformatvoidsetSubjectConfirmation(List confirmations)Sets a list of subject confirmationsStringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Field Detail
-
SUBJECT_ELEMENT
public static final String SUBJECT_ELEMENT
- See Also:
- Constant Field Values
-
SUBJECT_CONFIRMATION_ELEMENT
public static final String SUBJECT_CONFIRMATION_ELEMENT
- See Also:
- Constant Field Values
-
BASE_ID_ELEMENT
public static final String BASE_ID_ELEMENT
- See Also:
- Constant Field Values
-
NAME_ID_ELEMENT
public static final String NAME_ID_ELEMENT
- See Also:
- Constant Field Values
-
ENCRYPTED_ID_ELEMENT
public static final String ENCRYPTED_ID_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SubjectImpl
public SubjectImpl()
Default constructor
-
SubjectImpl
public SubjectImpl(String xml) throws SAML2Exception
This constructor is used to buildSubjectobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aSubjectobject- Throws:
SAML2Exception- if it could not process the XML string
-
SubjectImpl
public SubjectImpl(Element element) throws SAML2Exception
This constructor is used to buildSubjectobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forSubjectobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
getEncryptedID
public EncryptedID getEncryptedID()
Returns the encrypted identifier- Specified by:
getEncryptedIDin interfaceSubject- Returns:
- the encrypted identifier
-
setEncryptedID
public void setEncryptedID(EncryptedID value) throws SAML2Exception
Sets the encrypted identifier- Specified by:
setEncryptedIDin interfaceSubject- Parameters:
value- the encrypted identifier- Throws:
SAML2Exception- if the object is immutable
-
getNameID
public NameID getNameID()
Returns the identifier inNameIDformat
-
setNameID
public void setNameID(NameID value) throws SAML2Exception
Sets the identifier inNameIDformat- Specified by:
setNameIDin interfaceSubject- Parameters:
value- the identifier inNameIDformat- Throws:
SAML2Exception- if the object is immutable
-
getSubjectConfirmation
public List getSubjectConfirmation()
Returns a list of subject confirmations- Specified by:
getSubjectConfirmationin interfaceSubject- Returns:
- a list of subject confirmations
-
setSubjectConfirmation
public void setSubjectConfirmation(List confirmations) throws SAML2Exception
Sets a list of subject confirmations- Specified by:
setSubjectConfirmationin interfaceSubject- Parameters:
confirmations- a list of subject confirmations- Throws:
SAML2Exception- if the object is immutable
-
getBaseID
public BaseID getBaseID()
Returns the identifier inBaseIDformat
-
setBaseID
public void setBaseID(BaseID value) throws SAML2Exception
Sets the identifier inBaseIDformat- Specified by:
setBaseIDin interfaceSubject- Parameters:
value- the identifier inBaseIDformat- Throws:
SAML2Exception- if the object is immutable
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceSubject- Parameters:
includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceSubject- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceSubject
-
-