Class SubjectConfirmationImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectConfirmationImpl
-
- All Implemented Interfaces:
SubjectConfirmation
public class SubjectConfirmationImpl extends Object implements SubjectConfirmation
TheSubjectConfirmationprovides 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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_ID_ELEMENTstatic StringENCRYPTED_ID_ELEMENTstatic StringMETHOD_ATTRstatic StringNAME_ID_ELEMENTstatic StringSUBJECT_CONFIRMATION_DATA_ELEMENTstatic StringSUBJECT_CONFIRMATION_ELEMENT
-
Constructor Summary
Constructors Constructor Description SubjectConfirmationImpl()Default constructorSubjectConfirmationImpl(String xml)This constructor is used to buildSubjectConfirmationobject from a XML string.SubjectConfirmationImpl(Element element)This constructor is used to buildSubjectConfirmationobject 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 base IDEncryptedIDgetEncryptedID()Returns the encrypted IDStringgetMethod()Returns the confirmation methodNameIDgetNameID()Returns the identifier inNameIDformatSubjectConfirmationDatagetSubjectConfirmationData()Returns the subject confirmation databooleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetBaseID(BaseID value)Sets the base IDvoidsetEncryptedID(EncryptedID value)Sets the encrypted IDvoidsetMethod(String value)Sets the confirmation methodvoidsetNameID(NameID value)Sets the identifier inNameIDformatvoidsetSubjectConfirmationData(SubjectConfirmationData value)Sets the subject confirmation dataStringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Field Detail
-
SUBJECT_CONFIRMATION_ELEMENT
public static final String SUBJECT_CONFIRMATION_ELEMENT
- See Also:
- Constant Field Values
-
SUBJECT_CONFIRMATION_DATA_ELEMENT
public static final String SUBJECT_CONFIRMATION_DATA_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
-
METHOD_ATTR
public static final String METHOD_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SubjectConfirmationImpl
public SubjectConfirmationImpl()
Default constructor
-
SubjectConfirmationImpl
public SubjectConfirmationImpl(String xml) throws SAML2Exception
This constructor is used to buildSubjectConfirmationobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aSubjectConfirmationobject- Throws:
SAML2Exception- if it could not process the XML string
-
SubjectConfirmationImpl
public SubjectConfirmationImpl(Element element) throws SAML2Exception
This constructor is used to buildSubjectConfirmationobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forSubjectConfirmationobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
getEncryptedID
public EncryptedID getEncryptedID()
Returns the encrypted ID- Specified by:
getEncryptedIDin interfaceSubjectConfirmation- Returns:
- the encrypted ID
-
setEncryptedID
public void setEncryptedID(EncryptedID value) throws SAML2Exception
Sets the encrypted ID- Specified by:
setEncryptedIDin interfaceSubjectConfirmation- Parameters:
value- the encrypted ID- Throws:
SAML2Exception- if the object is immutable
-
getNameID
public NameID getNameID()
Returns the identifier inNameIDformat- Specified by:
getNameIDin interfaceSubjectConfirmation- Returns:
- the identifier in
NameIDformat
-
setNameID
public void setNameID(NameID value) throws SAML2Exception
Sets the identifier inNameIDformat- Specified by:
setNameIDin interfaceSubjectConfirmation- Parameters:
value- the identifier inNameIDformat- Throws:
SAML2Exception- if the object is immutable
-
getSubjectConfirmationData
public SubjectConfirmationData getSubjectConfirmationData()
Returns the subject confirmation data- Specified by:
getSubjectConfirmationDatain interfaceSubjectConfirmation- Returns:
- the subject confirmation data
-
setSubjectConfirmationData
public void setSubjectConfirmationData(SubjectConfirmationData value) throws SAML2Exception
Sets the subject confirmation data- Specified by:
setSubjectConfirmationDatain interfaceSubjectConfirmation- Parameters:
value- the subject confirmation data- Throws:
SAML2Exception- if the object is immutable
-
getBaseID
public BaseID getBaseID()
Returns the base ID- Specified by:
getBaseIDin interfaceSubjectConfirmation- Returns:
- the base ID
-
setBaseID
public void setBaseID(BaseID value) throws SAML2Exception
Sets the base ID- Specified by:
setBaseIDin interfaceSubjectConfirmation- Parameters:
value- the base ID- Throws:
SAML2Exception- if the object is immutable
-
getMethod
public String getMethod()
Returns the confirmation method- Specified by:
getMethodin interfaceSubjectConfirmation- Returns:
- the confirmation method
-
setMethod
public void setMethod(String value) throws SAML2Exception
Sets the confirmation method- Specified by:
setMethodin interfaceSubjectConfirmation- Parameters:
value- the confirmation method- Throws:
SAML2Exception- if the object is immutable
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceSubjectConfirmation- 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 interfaceSubjectConfirmation- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceSubjectConfirmation
-
isMutable
public boolean isMutable()
Returns true if the object is mutable- Specified by:
isMutablein interfaceSubjectConfirmation- Returns:
- true if the object is mutable
-
-