Class SubjectImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectImpl
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_ID_ELEMENT
static String
ENCRYPTED_ID_ELEMENT
static String
NAME_ID_ELEMENT
static String
SUBJECT_CONFIRMATION_ELEMENT
static String
SUBJECT_ELEMENT
-
Constructor Summary
Constructors Constructor Description SubjectImpl()
Default constructorSubjectImpl(String xml)
This constructor is used to buildSubject
object from a XML string.SubjectImpl(Element element)
This constructor is used to buildSubject
object 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 BaseID
getBaseID()
Returns the identifier inBaseID
formatEncryptedID
getEncryptedID()
Returns the encrypted identifierNameID
getNameID()
Returns the identifier inNameID
formatList
getSubjectConfirmation()
Returns a list of subject confirmationsboolean
isMutable()
Returns true if the object is mutablevoid
makeImmutable()
Makes the object immutablevoid
setBaseID(BaseID value)
Sets the identifier inBaseID
formatvoid
setEncryptedID(EncryptedID value)
Sets the encrypted identifiervoid
setNameID(NameID value)
Sets the identifier inNameID
formatvoid
setSubjectConfirmation(List confirmations)
Sets a list of subject confirmationsString
toXMLString()
Returns a String representationString
toXMLString(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 buildSubject
object from a XML string.- Parameters:
xml
- Ajava.lang.String
representing aSubject
object- Throws:
SAML2Exception
- if it could not process the XML string
-
SubjectImpl
public SubjectImpl(Element element) throws SAML2Exception
This constructor is used to buildSubject
object from a block of existing XML that has already been built into a DOM.- Parameters:
element
- Aorg.w3c.dom.Element
representing DOM tree forSubject
object- Throws:
SAML2Exception
- if it could not process the Element
-
-
Method Detail
-
getEncryptedID
public EncryptedID getEncryptedID()
Returns the encrypted identifier- Specified by:
getEncryptedID
in interfaceSubject
- Returns:
- the encrypted identifier
-
setEncryptedID
public void setEncryptedID(EncryptedID value) throws SAML2Exception
Sets the encrypted identifier- Specified by:
setEncryptedID
in interfaceSubject
- Parameters:
value
- the encrypted identifier- Throws:
SAML2Exception
- if the object is immutable
-
getNameID
public NameID getNameID()
Returns the identifier inNameID
format
-
setNameID
public void setNameID(NameID value) throws SAML2Exception
Sets the identifier inNameID
format- Specified by:
setNameID
in interfaceSubject
- Parameters:
value
- the identifier inNameID
format- Throws:
SAML2Exception
- if the object is immutable
-
getSubjectConfirmation
public List getSubjectConfirmation()
Returns a list of subject confirmations- Specified by:
getSubjectConfirmation
in interfaceSubject
- Returns:
- a list of subject confirmations
-
setSubjectConfirmation
public void setSubjectConfirmation(List confirmations) throws SAML2Exception
Sets a list of subject confirmations- Specified by:
setSubjectConfirmation
in interfaceSubject
- Parameters:
confirmations
- a list of subject confirmations- Throws:
SAML2Exception
- if the object is immutable
-
getBaseID
public BaseID getBaseID()
Returns the identifier inBaseID
format
-
setBaseID
public void setBaseID(BaseID value) throws SAML2Exception
Sets the identifier inBaseID
format- Specified by:
setBaseID
in interfaceSubject
- Parameters:
value
- the identifier inBaseID
format- Throws:
SAML2Exception
- if the object is immutable
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLString
in 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:
toXMLString
in interfaceSubject
- Returns:
- A String representation
- Throws:
SAML2Exception
- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutable
in interfaceSubject
-
-