|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.sun.identity.saml.assertion.SubjectConfirmation
public class SubjectConfirmation
The SubjectConfirmation element specifies a subject by specifying
data that authenticates the subject.
| コンストラクタの概要 | |
|---|---|
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. |
|
| メソッドの概要 | |
|---|---|
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. |
| コンストラクタの詳細 |
|---|
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.| メソッドの詳細 |
|---|
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()
Object 内の toString<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.
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||