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

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.AssertionBase
      上位を拡張 com.sun.identity.saml.assertion.Assertion
直系の既知のサブクラス:
FSAssertion, SecurityAssertion

public class Assertion
extends AssertionBase

This object stands for Assertion element. An Assertion is a package of information that supplies one or more Statement made by an issuer. There are three kinds of assertionsL Authentication, AuthorizationDecision and Attribute assertion.


フィールドの概要
 
クラス com.sun.identity.saml.assertion.AssertionBase から継承されたフィールド
_advice, _assertionID, _conditions, _issueInstant, _issuer, _majorVersion, _minorVersion, _statements, ASSERTION_ID_ATTRIBUTE, sc, signature, signatureString, signed, valid, validationDone, xmlString
 
コンストラクタの概要
protected Assertion()
          Default constructor Declaring protected to enable extensibility
  Assertion(Element assertionElement)
          Contructs Assertion object from a block of existing XML that has already been built into a DOM.
  Assertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Advice advice, Set statements)
          Contructs Assertion object and populate the data members: the ssertionID, the issuer, time when assertion issued, the conditions when creating a new assertion , Advice applicable to this Assertion and a set of Statement(s) in the assertion.
  Assertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Set statements)
          Contructs Assertion object and populate the data members: the assertionID, the issuer, time when assertion issued, the conditions when creating a new assertion and a set of Statement(s) in the assertion.
  Assertion(String assertionID, String issuer, Date issueInstant, Set statements)
          Contructs Assertion object and populate the data members: assertionID, the issuer, time when assertion issued and a set of Statement(s) in the assertion.
 
メソッドの概要
protected  AdviceBase createAdvice(Element adviceElement)
          Creates appropriate Advice instance
protected  AssertionIDReference createAssertionIDReference(Element assertionIDRefElement)
          Creates appropriate AssertionIDReference instance
protected  AssertionIDReference createAssertionIDReference(String assertionID)
          Creates appropriate AssertionIDReference instance
protected  AttributeStatement createAttributeStatement(Element attributeElement)
          Creates appropriate AttributeStatement instance
protected  AuthenticationStatement createAuthenticationStatement(Element authenticationElement)
          Creates appropriate AuthenticationStatement instance
protected  AuthorizationDecisionStatementBase createAuthorizationDecisionStatement(Element authDecisionElement)
          Create appropriate AuthorizationDecisionStatement instance
protected  Conditions createConditions(Element conditionsElement)
          Creates appropriate Conditions instance
 Advice getAdvice()
          Returns the advice of an assertion.
protected  int getMaxAssertionMinorVersion()
           
protected  int getMinAssertionMinorVersion()
           
 boolean isSignatureValid()
          Returns whether the signature on the object is valid or not.
protected  void parseAssertionElement(Element assertionElement)
           
protected  boolean processUnknownElement(Element element)
           
 void signXML()
          Signs the Assertion.
 void signXML(String certAlias)
          Signs the Assertion.
 
クラス com.sun.identity.saml.assertion.AssertionBase から継承されたメソッド
addStatement, getAssertionID, getConditions, getIssueInstant, getIssuer, getMajorVersion, getMinorVersion, getSignature, getStatement, isSigned, isTimeValid, setAdvice, setAssertionID, setConditions, setIssueInstant, setIssuer, setMajorVersion, setMinorVersion, setSignature, toString, toString
 

コンストラクタの詳細

Assertion

protected Assertion()
Default constructor Declaring protected to enable extensibility


Assertion

public Assertion(Element assertionElement)
          throws SAMLException
Contructs Assertion object from a block of existing XML that has already been built into a DOM.

パラメータ:
assertionElement - A org.w3c.dom.Element representing DOM tree for Assertion object
例外:
SAMLException - if it could not process the Element properly, implying that there is an error in the sender or in the element definition.

Assertion

public Assertion(String assertionID,
                 String issuer,
                 Date issueInstant,
                 Set statements)
          throws SAMLException
Contructs Assertion object and populate the data members: assertionID, the issuer, time when assertion issued and a set of Statement(s) in the assertion.

パラメータ:
assertionID - assertionID attribute contained within this Assertion if null, an assertionID is generated internally.
issuer - The issuer of this assertion.
issueInstant - time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification.if null, current time is used.
statements - set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
例外:
SAMLException - if there is an error in processing input.

Assertion

public Assertion(String assertionID,
                 String issuer,
                 Date issueInstant,
                 Conditions conditions,
                 Set statements)
          throws SAMLException
Contructs Assertion object and populate the data members: the assertionID, the issuer, time when assertion issued, the conditions when creating a new assertion and a set of Statement(s) in the assertion.

パラメータ:
assertionID - AssertionID contained within this Assertion if null its generated internally.
issuer - The issuer of this assertion.
issueInstant - time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification. if null, current time is used.
conditions - Conditions under which the this Assertion is valid.
statements - Set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
例外:
SAMLException - if there is an error in processing input.

Assertion

public Assertion(String assertionID,
                 String issuer,
                 Date issueInstant,
                 Conditions conditions,
                 Advice advice,
                 Set statements)
          throws SAMLException
Contructs Assertion object and populate the data members: the ssertionID, the issuer, time when assertion issued, the conditions when creating a new assertion , Advice applicable to this Assertion and a set of Statement(s) in the assertion.

パラメータ:
assertionID - AssertionID object contained within this Assertion if null its generated internally.
issuer - The issuer of this assertion.
issueInstant - Time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification. if null, current time is used.
conditions - Conditions under which the this Assertion is valid.
advice - Advice applicable for this Assertion.
statements - Set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
例外:
SAMLException - if there is an error in processing input.
メソッドの詳細

isSignatureValid

public boolean isSignatureValid()
Returns whether the signature on the object is valid or not.

オーバーライド:
クラス AssertionBase 内の isSignatureValid
戻り値:
true if the signature on the object is valid; false otherwise.

signXML

public void signXML()
             throws SAMLException
Signs the Assertion.

オーバーライド:
クラス AssertionBase 内の signXML
例外:
SAMLException - If it could not sign the Assertion.

signXML

public void signXML(String certAlias)
             throws SAMLException
Signs the Assertion.

オーバーライド:
クラス AssertionBase 内の signXML
パラメータ:
certAlias - certification Alias used to sign Assertion.
例外:
SAMLException - if it could not sign the Assertion.

parseAssertionElement

protected void parseAssertionElement(Element assertionElement)
                              throws SAMLException
例外:
SAMLException

getAdvice

public Advice getAdvice()
Returns the advice of an assertion.

戻り値:
Advice object containing advice information of the assertion.

createAdvice

protected AdviceBase createAdvice(Element adviceElement)
                           throws SAMLException
クラス AssertionBase の記述:
Creates appropriate Advice instance

定義:
クラス AssertionBase 内の createAdvice
パラメータ:
adviceElement - the Advice Element
戻り値:
the Advice instance
例外:
SAMLException

createAuthorizationDecisionStatement

protected AuthorizationDecisionStatementBase createAuthorizationDecisionStatement(Element authDecisionElement)
                                                                           throws SAMLException
クラス AssertionBase の記述:
Create appropriate AuthorizationDecisionStatement instance

定義:
クラス AssertionBase 内の createAuthorizationDecisionStatement
パラメータ:
authDecisionElement - the AuthorizationDecisionStatement Element
戻り値:
AuthorizationDecisionStatement instance
例外:
SAMLException

createAuthenticationStatement

protected AuthenticationStatement createAuthenticationStatement(Element authenticationElement)
                                                         throws SAMLException
クラス AssertionBase の記述:
Creates appropriate AuthenticationStatement instance

定義:
クラス AssertionBase 内の createAuthenticationStatement
パラメータ:
authenticationElement - the AuthenticationStatement Element
戻り値:
AuthenticationStatement instance
例外:
SAMLException

createAttributeStatement

protected AttributeStatement createAttributeStatement(Element attributeElement)
                                               throws SAMLException
クラス AssertionBase の記述:
Creates appropriate AttributeStatement instance

定義:
クラス AssertionBase 内の createAttributeStatement
パラメータ:
attributeElement - the AttributeStatement Element
戻り値:
AttributeStatement instance
例外:
SAMLException

createAssertionIDReference

protected AssertionIDReference createAssertionIDReference(Element assertionIDRefElement)
                                                   throws SAMLException
クラス AssertionBase の記述:
Creates appropriate AssertionIDReference instance

定義:
クラス AssertionBase 内の createAssertionIDReference
パラメータ:
assertionIDRefElement - the AssertionIDReference Element
戻り値:
AssertionIDReference instance
例外:
SAMLException

createAssertionIDReference

protected AssertionIDReference createAssertionIDReference(String assertionID)
                                                   throws SAMLException
クラス AssertionBase の記述:
Creates appropriate AssertionIDReference instance

定義:
クラス AssertionBase 内の createAssertionIDReference
パラメータ:
assertionID - the AssertionID String
戻り値:
AssertionIDReference instance
例外:
SAMLException

createConditions

protected Conditions createConditions(Element conditionsElement)
                               throws SAMLException
クラス AssertionBase の記述:
Creates appropriate Conditions instance

定義:
クラス AssertionBase 内の createConditions
パラメータ:
conditionsElement - the Conditions Element
戻り値:
Conditions instance
例外:
SAMLException

processUnknownElement

protected boolean processUnknownElement(Element element)
                                 throws SAMLException
例外:
SAMLException

getMinAssertionMinorVersion

protected int getMinAssertionMinorVersion()

getMaxAssertionMinorVersion

protected int getMaxAssertionMinorVersion()