Modifier and Type | Field and 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 and Description |
---|
SubjectImpl()
Default constructor
|
SubjectImpl(Element element)
This constructor is used to build
Subject object
from a block of existing XML that has already been built into
a DOM. |
SubjectImpl(String xml)
This constructor is used to build
Subject object
from a XML string. |
Modifier and Type | Method and Description |
---|---|
BaseID |
getBaseID()
Returns the identifier in
BaseID format |
EncryptedID |
getEncryptedID()
Returns the encrypted identifier
|
NameID |
getNameID()
Returns the identifier in
NameID format |
List |
getSubjectConfirmation()
Returns a list of subject confirmations
|
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setBaseID(BaseID value)
Sets the identifier in
BaseID format |
void |
setEncryptedID(EncryptedID value)
Sets the encrypted identifier
|
void |
setNameID(NameID value)
Sets the identifier in
NameID format |
void |
setSubjectConfirmation(List confirmations)
Sets a list of subject confirmations
|
String |
toXMLString()
Returns a String representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public static final String SUBJECT_ELEMENT
public static final String SUBJECT_CONFIRMATION_ELEMENT
public static final String BASE_ID_ELEMENT
public static final String NAME_ID_ELEMENT
public static final String ENCRYPTED_ID_ELEMENT
public SubjectImpl()
public SubjectImpl(String xml) throws SAML2Exception
Subject
object
from a XML string.xml
- A java.lang.String
representing
a Subject
objectSAML2Exception
- if it could not process the XML stringpublic SubjectImpl(Element element) throws SAML2Exception
Subject
object
from a block of existing XML that has already been built into
a DOM.element
- A org.w3c.dom.Element
representing
DOM tree for Subject
objectSAML2Exception
- if it could not process the Elementpublic EncryptedID getEncryptedID()
getEncryptedID
in interface Subject
public void setEncryptedID(EncryptedID value) throws SAML2Exception
setEncryptedID
in interface Subject
value
- the encrypted identifierSAML2Exception
- if the object is immutablepublic NameID getNameID()
NameID
formatpublic void setNameID(NameID value) throws SAML2Exception
NameID
formatsetNameID
in interface Subject
value
- the identifier in NameID
formatSAML2Exception
- if the object is immutablepublic List getSubjectConfirmation()
getSubjectConfirmation
in interface Subject
public void setSubjectConfirmation(List confirmations) throws SAML2Exception
setSubjectConfirmation
in interface Subject
confirmations
- a list of subject confirmationsSAML2Exception
- if the object is immutablepublic BaseID getBaseID()
BaseID
formatpublic void setBaseID(BaseID value) throws SAML2Exception
BaseID
formatsetBaseID
in interface Subject
value
- the identifier in BaseID
formatSAML2Exception
- if the object is immutablepublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface Subject
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.SAML2Exception
- if something is wrong during conversionpublic String toXMLString() throws SAML2Exception
toXMLString
in interface Subject
SAML2Exception
- if something is wrong during conversionpublic void makeImmutable()
makeImmutable
in interface Subject
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.