public class SubjectConfirmationImpl extends Object implements SubjectConfirmation
SubjectConfirmation
provides the means for a relying
party to verify the correspondence of the subject of the assertion
with the party with whom the relying party is communicating.Modifier and Type | Field and Description |
---|---|
static String |
BASE_ID_ELEMENT |
static String |
ENCRYPTED_ID_ELEMENT |
static String |
METHOD_ATTR |
static String |
NAME_ID_ELEMENT |
static String |
SUBJECT_CONFIRMATION_DATA_ELEMENT |
static String |
SUBJECT_CONFIRMATION_ELEMENT |
Constructor and Description |
---|
SubjectConfirmationImpl()
Default constructor
|
SubjectConfirmationImpl(Element element)
This constructor is used to build
SubjectConfirmation
object from a block of existing XML that has already been built
into a DOM. |
SubjectConfirmationImpl(String xml)
This constructor is used to build
SubjectConfirmation
object from a XML string. |
Modifier and Type | Method and Description |
---|---|
BaseID |
getBaseID()
Returns the base ID
|
EncryptedID |
getEncryptedID()
Returns the encrypted ID
|
String |
getMethod()
Returns the confirmation method
|
NameID |
getNameID()
Returns the identifier in
NameID format |
SubjectConfirmationData |
getSubjectConfirmationData()
Returns the subject confirmation data
|
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setBaseID(BaseID value)
Sets the base ID
|
void |
setEncryptedID(EncryptedID value)
Sets the encrypted ID
|
void |
setMethod(String value)
Sets the confirmation method
|
void |
setNameID(NameID value)
Sets the identifier in
NameID format |
void |
setSubjectConfirmationData(SubjectConfirmationData value)
Sets the subject confirmation data
|
String |
toXMLString()
Returns a String representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public static final String SUBJECT_CONFIRMATION_ELEMENT
public static final String SUBJECT_CONFIRMATION_DATA_ELEMENT
public static final String BASE_ID_ELEMENT
public static final String NAME_ID_ELEMENT
public static final String ENCRYPTED_ID_ELEMENT
public static final String METHOD_ATTR
public SubjectConfirmationImpl()
public SubjectConfirmationImpl(String xml) throws SAML2Exception
SubjectConfirmation
object from a XML string.xml
- A java.lang.String
representing
a SubjectConfirmation
objectSAML2Exception
- if it could not process the XML stringpublic SubjectConfirmationImpl(Element element) throws SAML2Exception
SubjectConfirmation
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 SubjectConfirmation
objectSAML2Exception
- if it could not process the Elementpublic EncryptedID getEncryptedID()
getEncryptedID
in interface SubjectConfirmation
public void setEncryptedID(EncryptedID value) throws SAML2Exception
setEncryptedID
in interface SubjectConfirmation
value
- the encrypted IDSAML2Exception
- if the object is immutablepublic NameID getNameID()
NameID
formatgetNameID
in interface SubjectConfirmation
NameID
formatpublic void setNameID(NameID value) throws SAML2Exception
NameID
formatsetNameID
in interface SubjectConfirmation
value
- the identifier in NameID
formatSAML2Exception
- if the object is immutablepublic SubjectConfirmationData getSubjectConfirmationData()
getSubjectConfirmationData
in interface SubjectConfirmation
public void setSubjectConfirmationData(SubjectConfirmationData value) throws SAML2Exception
setSubjectConfirmationData
in interface SubjectConfirmation
value
- the subject confirmation dataSAML2Exception
- if the object is immutablepublic BaseID getBaseID()
getBaseID
in interface SubjectConfirmation
public void setBaseID(BaseID value) throws SAML2Exception
setBaseID
in interface SubjectConfirmation
value
- the base IDSAML2Exception
- if the object is immutablepublic String getMethod()
getMethod
in interface SubjectConfirmation
public void setMethod(String value) throws SAML2Exception
setMethod
in interface SubjectConfirmation
value
- the confirmation methodSAML2Exception
- if the object is immutablepublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface SubjectConfirmation
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 SubjectConfirmation
SAML2Exception
- if something is wrong during conversionpublic void makeImmutable()
makeImmutable
in interface SubjectConfirmation
public boolean isMutable()
isMutable
in interface SubjectConfirmation
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.