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
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.saml20.jaxb20.SubjectConfirmationType
baseID, encryptedID, method, nameID, subjectConfirmationData
-
-
Constructor Summary
Constructors Constructor Description SubjectConfirmation()SubjectConfirmation(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
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.List<String>getConfirmationMethod()Gets the value of the confirmationMethod property.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.0-
Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectConfirmationType
getBaseID, getEncryptedID, getMethod, getNameID, getSubjectConfirmationData, setBaseID, setEncryptedID, setMethod, setNameID, setSubjectConfirmationData
-
-
-
-
Constructor Detail
-
SubjectConfirmation
public SubjectConfirmation()
-
SubjectConfirmation
public SubjectConfirmation(NameID nameID, String method)
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
public SubjectConfirmation(SubjectConfirmationType subConfType)
-
-
Method Detail
-
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
-
getConfirmationMethod
public List<String> 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
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
-
-