com.sun.xml.wss.saml.assertion.saml11.jaxb10
Class SubjectConfirmation

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl
      extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl
          extended by com.sun.xml.wss.saml.assertion.saml11.jaxb10.SubjectConfirmation
All Implemented Interfaces:
com.sun.xml.bind.JAXBObject, com.sun.xml.bind.RIElement, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable, com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectConfirmation, com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectConfirmationType, Element

public class SubjectConfirmation
extends com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl
implements SubjectConfirmation

The SubjectConfirmation element specifies a subject by specifying data that authenticates the subject.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl
com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl.Unmarshaller
 
Field Summary
protected  PublicKey keyInfoKeyValue
           
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl
version
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl
_ConfirmationMethod, _KeyInfo, _SubjectConfirmationData
 
Constructor Summary
SubjectConfirmation()
           
SubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo)
          Constructs an SubjectConfirmation instance.
SubjectConfirmation(String confirmationMethod)
          From scratch constructor for a single confirmation method.
SubjectConfirmation(com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectConfirmationType subConfType)
           
 
Method Summary
static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl fromElement(Element element)
          Constructs a subject confirmation element from an existing XML block.
 List<String> getConfirmationMethod()
          Gets the value of the confirmationMethod property.
 NameID getNameId()
          Gets the value of the nameID property for SAML 2.0
 Object getSubjectConfirmationDataForSAML11()
          Gets the value of the subjectConfirmationData property for SAML 1.1 and SAML 1.0.
 SubjectConfirmationData getSubjectConfirmationDataForSAML20()
          Gets the value of the subjectConfirmationData property for SAML 2.0
 void setConfirmationMethod(List confirmationMethod)
           
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationImpl
____jaxb_ri____getLocalName, ____jaxb_ri____getNamespaceURI, createRawValidator, createUnmarshaller, getPrimaryInterface, serializeAttributes, serializeBody, serializeURIs
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl
_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.internal.saml11.jaxb10.SubjectConfirmationType
getKeyInfo, getSubjectConfirmationData, setKeyInfo, setSubjectConfirmationData
 

Field Detail

keyInfoKeyValue

protected PublicKey keyInfoKeyValue

log

protected static final Logger log
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 a Subject. Please refer to draft-sstc-core-25 Section 7 for a list of URIs identifying common authentication protocols.
Throws:
SAMLException - if the input data is null.

SubjectConfirmation

public SubjectConfirmation(com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectConfirmationType subConfType)

SubjectConfirmation

public SubjectConfirmation(List confirmationMethods,
                           Element subjectConfirmationData,
                           Element keyInfo)
                    throws SAMLException
Constructs an SubjectConfirmation instance.

Parameters:
confirmationMethods - A set of confirmationMethods each of which is a URI (String) that identifies a protocol used to authenticate a Subject. Please refer to draft-sstc-core-25 Section 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 no subjectConfirmationData for the SubjectConfirmation object.
keyInfo - An XML signature element that specifies a cryptographic key held by the Subject.
Throws:
SAMLException - if the input data is invalid or confirmationMethods is empty.
Method Detail

setConfirmationMethod

public void setConfirmationMethod(List confirmationMethod)

fromElement

public static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl fromElement(Element element)
                                                                                                throws SAMLException
Constructs a subject confirmation element from an existing XML block.

Parameters:
subjectConfirmationElement - a DOM Element representing the SubjectConfirmation object.
Throws:
SAMLException

getSubjectConfirmationDataForSAML11

public Object getSubjectConfirmationDataForSAML11()
Description copied from interface: SubjectConfirmation
Gets the value of the subjectConfirmationData property for SAML 1.1 and SAML 1.0.

Returns:
object is Object

getSubjectConfirmationDataForSAML20

public SubjectConfirmationData getSubjectConfirmationDataForSAML20()
Description copied from interface: SubjectConfirmation
Gets the value of the subjectConfirmationData property for SAML 2.0

Returns:
object is SubjectConfirmationData

getNameId

public NameID getNameId()
Description copied from interface: SubjectConfirmation
Gets the value of the nameID property for SAML 2.0

Returns:
object is NameID

getConfirmationMethod

public List<String> getConfirmationMethod()
Description copied from interface: SubjectConfirmation
Gets the value of the confirmationMethod property.

Specified by:
getConfirmationMethod in interface com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectConfirmationType
Overrides:
getConfirmationMethod in class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectConfirmationTypeImpl
Returns:
Objects of the following type(s) allowed in the list String


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.