Class SubjectConfirmation
java.lang.Object
com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectConfirmationType
com.sun.xml.wss.saml.assertion.saml11.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.saml11.jaxb20.SubjectConfirmationType
confirmationMethod, keyInfo, subjectConfirmationData -
Constructor Summary
ConstructorsConstructorDescriptionSubjectConfirmation(SubjectConfirmationType subConfType) SubjectConfirmation(String confirmationMethod) From scratch constructor for a single confirmation method.SubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) Constructs anSubjectConfirmationinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubjectConfirmationTypefromElement(Element element) Constructs a subject confirmation element from an existing XML block.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.0voidsetConfirmationMethod(List confirmationMethod) Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectConfirmationType
getConfirmationMethod, getKeyInfo, getSubjectConfirmationData, setKeyInfo, setSubjectConfirmationDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.wss.saml.SubjectConfirmation
getConfirmationMethod
-
Field Details
-
keyInfoKeyValue
-
log
-
-
Constructor Details
-
SubjectConfirmation
public SubjectConfirmation() -
SubjectConfirmation
From scratch constructor for a single confirmation method.- Parameters:
confirmationMethod- A URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.
-
SubjectConfirmation
public SubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) throws SAMLException Constructs anSubjectConfirmationinstance.- Parameters:
confirmationMethods- A set ofconfirmationMethodseach of which is a URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.subjectConfirmationData- Additional authentication information to be used by a specific authentication protocol. Can be passed as null if there is nosubjectConfirmationDatafor theSubjectConfirmationobject.keyInfo- An XML signature element that specifies a cryptographic key held by theSubject.- Throws:
SAMLException- if the input data is invalid orconfirmationMethodsis empty.
-
SubjectConfirmation
-
-
Method Details
-
setConfirmationMethod
-
fromElement
Constructs a subject confirmation element from an existing XML block.- Parameters:
element- a DOM Element representing theSubjectConfirmationobject.- Throws:
SAMLException
-
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
-