Class SubjectConfirmation
java.lang.Object
com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectConfirmationType
com.sun.xml.wss.saml.assertion.saml20.jaxb20.SubjectConfirmation
- All Implemented Interfaces:
SubjectConfirmation
The
SubjectConfirmation element specifies a subject by specifying data that
authenticates the subject.-
Field Summary
FieldsFields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectConfirmationType
baseID, encryptedID, method, nameID, subjectConfirmationData -
Constructor Summary
ConstructorsConstructorDescriptionSubjectConfirmation(NameID nameID, KeyInfoConfirmationData keyInfoConfirmationData, String confirmationMethod) SubjectConfirmation(NameID nameID, SubjectConfirmationData subjectConfirmationData, String confirmationMethod) Constructs anSubjectConfirmationinstance.SubjectConfirmation(NameID nameID, String method) From scratch constructor for a single confirmation method.SubjectConfirmation(SubjectConfirmationType subConfType) -
Method Summary
Modifier and TypeMethodDescriptionstatic SubjectConfirmationTypefromElement(Element element) Constructs a subject confirmation element from an existing XML block.Gets the value of the confirmationMethod property.Gets the value of the nameID property for SAML 2.0Gets the value of the subjectConfirmationData property for SAML 1.1 and SAML 1.0.Gets the value of the subjectConfirmationData property for SAML 2.0Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectConfirmationType
getBaseID, getEncryptedID, getMethod, getNameID, getSubjectConfirmationData, setBaseID, setEncryptedID, setMethod, setNameID, setSubjectConfirmationData
-
Field Details
-
keyInfoKeyValue
-
log
-
-
Constructor Details
-
SubjectConfirmation
public SubjectConfirmation() -
SubjectConfirmation
From scratch constructor for a single confirmation method. -
SubjectConfirmation
public SubjectConfirmation(NameID nameID, SubjectConfirmationData subjectConfirmationData, String confirmationMethod) throws SAMLException Constructs anSubjectConfirmationinstance.- Parameters:
subjectConfirmationData- Additional authentication information to be used by a specific authentication protocol. Can be passed as null if there is nosubjectConfirmationDatafor theSubjectConfirmationobject.- Throws:
SAMLException- if the input data is invalid orconfirmationMethodsis empty.
-
SubjectConfirmation
public SubjectConfirmation(NameID nameID, KeyInfoConfirmationData keyInfoConfirmationData, String confirmationMethod) throws SAMLException - Throws:
SAMLException
-
SubjectConfirmation
-
-
Method Details
-
fromElement
Constructs a subject confirmation element from an existing XML block.- Parameters:
element- a DOM Element representing theSubjectConfirmationobject.- Throws:
SAMLException
-
getConfirmationMethod
Description copied from interface:SubjectConfirmationGets the value of the confirmationMethod property.- Specified by:
getConfirmationMethodin interfaceSubjectConfirmation- Returns:
- Objects of the following type(s) allowed in the list
String
-
getSubjectConfirmationDataForSAML11
Description copied from interface:SubjectConfirmationGets the value of the subjectConfirmationData property for SAML 1.1 and SAML 1.0.- Specified by:
getSubjectConfirmationDataForSAML11in interfaceSubjectConfirmation- Returns:
- object is
Object
-
getSubjectConfirmationDataForSAML20
Description copied from interface:SubjectConfirmationGets the value of the subjectConfirmationData property for SAML 2.0- Specified by:
getSubjectConfirmationDataForSAML20in interfaceSubjectConfirmation- Returns:
- object is
SubjectConfirmationData
-
getNameId
Description copied from interface:SubjectConfirmationGets the value of the nameID property for SAML 2.0- Specified by:
getNameIdin interfaceSubjectConfirmation- Returns:
- object is
NameID
-