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
public class SubjectConfirmation extends SubjectConfirmationType implements SubjectConfirmation
TheSubjectConfirmationelement specifies a subject by specifying data that authenticates the subject.
-
-
Field Summary
Fields Modifier and Type Field Description protected PublicKeykeyInfoKeyValueprotected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectConfirmationType
confirmationMethod, keyInfo, subjectConfirmationData
-
-
Constructor Summary
Constructors Constructor Description SubjectConfirmation()SubjectConfirmation(SubjectConfirmationType subConfType)SubjectConfirmation(String confirmationMethod)From scratch constructor for a single confirmation method.SubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo)Constructs anSubjectConfirmationinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubjectConfirmationTypefromElement(Element element)Constructs a subject confirmation element from an existing XML block.NameIDgetNameId()Gets the value of the nameID property for SAML 2.0ObjectgetSubjectConfirmationDataForSAML11()Gets the value of the subjectConfirmationData property for SAML 1.1 and SAML 1.0.SubjectConfirmationDatagetSubjectConfirmationDataForSAML20()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, setSubjectConfirmationData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.wss.saml.SubjectConfirmation
getConfirmationMethod
-
-
-
-
Constructor Detail
-
SubjectConfirmation
public SubjectConfirmation()
-
SubjectConfirmation
public SubjectConfirmation(String confirmationMethod)
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.- Throws:
SAMLException- if the input data is null.
-
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
public SubjectConfirmation(SubjectConfirmationType subConfType)
-
-
Method Detail
-
setConfirmationMethod
public void setConfirmationMethod(List confirmationMethod)
-
fromElement
public static SubjectConfirmationType fromElement(Element element) throws SAMLException
Constructs a subject confirmation element from an existing XML block.- Parameters:
element- a DOM Element representing theSubjectConfirmationobject.- Throws:
SAMLException
-
getSubjectConfirmationDataForSAML11
public Object 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
public SubjectConfirmationData 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
public NameID getNameId()
Description copied from interface:SubjectConfirmationGets the value of the nameID property for SAML 2.0- Specified by:
getNameIdin interfaceSubjectConfirmation- Returns:
- object is
NameID
-
-