com.sun.identity.saml.assertion
クラス AuthenticationStatement

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.Statement
      上位を拡張 com.sun.identity.saml.assertion.SubjectStatement
          上位を拡張 com.sun.identity.saml.assertion.AuthenticationStatement
直系の既知のサブクラス:
FSAuthenticationStatement

public class AuthenticationStatement
extends SubjectStatement

The AuthenticationStatement element supplies a statement by the issuer that its subject was authenticated by a particular means at a particular time. The AuthenticationStatement element is of type AuthenticationStatementType, which extends the SubjectStatementAbstractType with the additional element and attributes.


フィールドの概要
protected  Date _authenticationInstant
           
protected  String _authenticationMethod
           
protected  List _authorityBinding
           
protected  SubjectLocality _subjectLocality
           
 
クラス com.sun.identity.saml.assertion.SubjectStatement から継承されたフィールド
_subject
 
クラス com.sun.identity.saml.assertion.Statement から継承されたフィールド
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
 
コンストラクタの概要
protected AuthenticationStatement()
          Default constructor
  AuthenticationStatement(Element element)
          Constructs an authentication statement element from an existing XML block.
  AuthenticationStatement(String authMethod, Date authInstant, Subject subject)
          Constructs Authentication statement
  AuthenticationStatement(String authMethod, Date authInstant, Subject subject, SubjectLocality subjectLocality, List authorityBinding)
          Constructs AuthenticationStatement
 
メソッドの概要
protected  AuthorityBinding createAuthorityBinding(Element authorityBindingElement)
           
protected  Subject createSubject(Element subjectElement)
           
protected  SubjectLocality createSubjectLocality(Element subjectLocalityElement)
           
 String getAuthenticaionMethod()
          Returns AuthenticationMethod from authentication statement
 Date getAuthenticationInstant()
          Returns AuthenticationInstant from authentication statement.
 List getAuthorityBinding()
          Returns the AuthorityBinding from AuthenticationStatement.
 int getStatementType()
          Gets the real type of the Statement.
 SubjectLocality getSubjectLocality()
          Returns the SubjectLocality from AuthenticationStatement
 boolean setAuthenticaionMethod(String authenticationmethod)
          Sets AuthenticationMethod for AuthenticationStatement.
 boolean setAuthenticationInstant(Date authenticationinstant)
          Sets AuthenticationInstant for AuthenticationStatement.
 boolean setAuthorityBinding(List authoritybinding)
          Sets the AuthorityBinding for AuthenticationStatement.
 boolean setSubjectLocality(SubjectLocality subjectlocality)
          Sets the SubjectLocality for AuthenticationStatement.
 String toString()
          Returns a String representation of the Authentication Statement.
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the AuthenticationStatement
 
クラス com.sun.identity.saml.assertion.SubjectStatement から継承されたメソッド
getSubject, setSubject
 

フィールドの詳細

_authenticationMethod

protected String _authenticationMethod

_authenticationInstant

protected Date _authenticationInstant

_subjectLocality

protected SubjectLocality _subjectLocality

_authorityBinding

protected List _authorityBinding
コンストラクタの詳細

AuthenticationStatement

protected AuthenticationStatement()
Default constructor


AuthenticationStatement

public AuthenticationStatement(Element element)
                        throws SAMLException
Constructs an authentication statement element from an existing XML block.

パラメータ:
element - representing a DOM tree element.
例外:
SAMLException - if there is an error in the sender or in the element definition.

AuthenticationStatement

public AuthenticationStatement(String authMethod,
                               Date authInstant,
                               Subject subject)
                        throws SAMLException
Constructs Authentication statement

パラメータ:
authMethod - (optional) A String specifies the type of authentication that took place.
authInstant - (optional) A String specifies the time at which the authentication took place.
subject - (required) A Subject object
例外:
SAMLException - if there is an error in the sender.

AuthenticationStatement

public AuthenticationStatement(String authMethod,
                               Date authInstant,
                               Subject subject,
                               SubjectLocality subjectLocality,
                               List authorityBinding)
                        throws SAMLException
Constructs AuthenticationStatement

パラメータ:
authMethod - (optional) A String specifies the type of authentication that took place.
authInstant - (optional) A String specifies the time at which the authentication that took place.
subject - (required) A Subject object
subjectLocality - (optional) A SubjectLocality object.
authorityBinding - (optional) A List of AuthorityBinding objects.
例外:
SAMLException - if there is an error in the sender.
メソッドの詳細

getSubjectLocality

public SubjectLocality getSubjectLocality()
Returns the SubjectLocality from AuthenticationStatement

戻り値:
The SubjectLocality object within the authentication statement.

setSubjectLocality

public boolean setSubjectLocality(SubjectLocality subjectlocality)
Sets the SubjectLocality for AuthenticationStatement.

パラメータ:
subjectlocality - The SubjectLocality object within the AuthenticationStatement.
戻り値:
true if the operation is successful.

getAuthenticaionMethod

public String getAuthenticaionMethod()
Returns AuthenticationMethod from authentication statement

戻り値:
A String representing the authentication method of the authentication statement.

setAuthenticaionMethod

public boolean setAuthenticaionMethod(String authenticationmethod)
Sets AuthenticationMethod for AuthenticationStatement.

パラメータ:
authenticationmethod - input authentication method
戻り値:
true if the operation is successful. Otherwise return false.

getAuthenticationInstant

public Date getAuthenticationInstant()
Returns AuthenticationInstant from authentication statement.

戻り値:
The date/time when the authentication statement is created.

setAuthenticationInstant

public boolean setAuthenticationInstant(Date authenticationinstant)
Sets AuthenticationInstant for AuthenticationStatement.

パラメータ:
authenticationinstant - The date/time when the authentication statement is created.
戻り値:
true if the operation is successful.

getAuthorityBinding

public List getAuthorityBinding()
Returns the AuthorityBinding from AuthenticationStatement.

戻り値:
A list of the AuthorityBinding objects

setAuthorityBinding

public boolean setAuthorityBinding(List authoritybinding)
Sets the AuthorityBinding for AuthenticationStatement.

パラメータ:
authoritybinding - A list of the AuthorityBinding objects.
戻り値:
true if the operation is successful.

getStatementType

public int getStatementType()
Gets the real type of the Statement. This method returns Statement.AUTHENTICATION_STATEMENT.

定義:
クラス Statement 内の getStatementType
戻り値:
an integer which is Statement.AUTHENTICATION_STATEMENT.

toString

public String toString()
Returns a String representation of the Authentication Statement.

オーバーライド:
クラス Object 内の toString
戻り値:
A String representation of the <saml:AuthenticationStatement> element.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns a String representation of the AuthenticationStatement

定義:
クラス SubjectStatement 内の toString
パラメータ:
includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
戻り値:
A String representation of the <saml:AuthenticationStatement> element.

createSubject

protected Subject createSubject(Element subjectElement)
                         throws SAMLException
例外:
SAMLException

createSubjectLocality

protected SubjectLocality createSubjectLocality(Element subjectLocalityElement)
                                         throws SAMLException
例外:
SAMLException

createAuthorityBinding

protected AuthorityBinding createAuthorityBinding(Element authorityBindingElement)
                                           throws SAMLException
例外:
SAMLException