|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.assertion.SubjectConfirmation
public class SubjectConfirmation
The SubjectConfirmation
element specifies a subject by specifying
data that authenticates the subject.
Constructor Summary | |
---|---|
SubjectConfirmation(Element subjectConfirmationElement)
Constructs a subject confirmation element from an existing XML block. |
|
SubjectConfirmation(Set confirmationMethods)
Constructor for multiple confirmation methods |
|
SubjectConfirmation(Set confirmationMethods,
Element subjectConfirmationData,
Element keyInfo)
Constructs an SubjectConfirmation instance. |
|
SubjectConfirmation(String confirmationMethod)
Constructor with a single confirmation method. |
Method Summary | |
---|---|
boolean |
addConfirmationMethod(String confirmationMethod)
Adds a confirmationMethod to this
SubjectConfirmation element. |
boolean |
equals(SubjectConfirmation subjectConfirmation)
Checks for equality between this object and the SubjectConfirmation passed down as parameter. |
Set |
getConfirmationMethod()
Gets Confirmation Method(s) |
Element |
getKeyInfo()
Returns the key info. |
Element |
getSubjectConfirmationData()
Get Subject Confirmation Data |
boolean |
setKeyInfo(Element keyInfo)
Sets the key info. |
boolean |
setSubjectConfirmationData(Element subjectConfirmationData)
Sets the SubjectConfirmationData |
boolean |
setSubjectConfirmationData(String scDataString)
Sets the SubjectConfirmationData . |
String |
toString()
Returns a String representation of the element |
String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the <SubjectConfirmation> element. |
Constructor Detail |
---|
public SubjectConfirmation(Element subjectConfirmationElement) throws SAMLException
subjectConfirmationElement
- a DOM Element representing the
SubjectConfirmation
object.
SAMLException
public SubjectConfirmation(String confirmationMethod) throws SAMLException
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.
SAMLException
- if the input data is null.public SubjectConfirmation(Set confirmationMethods) throws SAMLException
confirmationMethods
- a Set
of
confirmationMethods
SAMLException
- if the confirmationMethods
is
empty.public SubjectConfirmation(Set confirmationMethods, Element subjectConfirmationData, Element keyInfo) throws SAMLException
SubjectConfirmation
instance.
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
.
SAMLException
- if the input data is invalid or
confirmationMethods
is empty.Method Detail |
---|
public boolean addConfirmationMethod(String confirmationMethod)
confirmationMethod
to this
SubjectConfirmation
element.
confirmationMethod
- a String which is a URI (String) that
identifies a protocol used to authenticate a Subject
.
public Set getConfirmationMethod()
java.util.Set
of confirmation Methods. Each method
contained within is a String
representing the confirmation
method.public Element getSubjectConfirmationData()
public boolean setSubjectConfirmationData(Element subjectConfirmationData)
SubjectConfirmationData
subjectConfirmationData
- A String representation of the subject
confirmation data within this SubjectConfirmation
element
public boolean setSubjectConfirmationData(String scDataString)
SubjectConfirmationData
.
scDataString
- A String representation of the subject
confirmation data within this SubjectConfirmation
element.
public Element getKeyInfo()
public boolean setKeyInfo(Element keyInfo)
keyInfo
- dsig.KeyInfo
.
public boolean equals(SubjectConfirmation subjectConfirmation)
SubjectConfirmation
passed down as parameter. Checks to
see that each have confirmations method present in the other one (does
not care about sequence)
Also does an exact match on SubjectConfirmationData
.
Note: no check is done for KeyInfo
.
subjectConfirmation
- SubjectConfirmation
to be
checked.
public String toString()
toString
in class Object
<saml:SubjectConfirmation>
.public String toString(boolean includeNS, boolean declareNS)
<SubjectConfirmation>
element.
includeNS
- Determines whether or not the namespace qualifier is
prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |