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

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

public abstract class AuthorizationDecisionStatementBase
extends SubjectStatement

The AuthorizationDecisionStatement element supplies a statement by the issuer that the request for access by the specified subject to the specified resource has resulted in the specified decision on the basis of some optionally specified evidence. This class is an abstract base class for all AuthorizationDecisionStatement implementations and encapsulates common functionality.


入れ子のクラスの概要
static class AuthorizationDecisionStatementBase.DecisionType
          The DecisionType is an inner class defining constants for the type of Decisions than can be conveyed by an AuthorizationDecisionStatement .
 
フィールドの概要
protected  EvidenceBase _evidence
           
 
クラス com.sun.identity.saml.assertion.SubjectStatement から継承されたフィールド
_subject
 
クラス com.sun.identity.saml.assertion.Statement から継承されたフィールド
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
 
コンストラクタの概要
protected AuthorizationDecisionStatementBase()
          Default constructor
  AuthorizationDecisionStatementBase(Element element)
          Constructs an AuthorizationStatement element from an existing XML block.
  AuthorizationDecisionStatementBase(Subject subject, String resource, int decision, List action)
          Constructs a AuthorizationDecisionStatement instance.
  AuthorizationDecisionStatementBase(Subject subject, String resource, int decision, List action, EvidenceBase evidence)
          Constructs an instance of AuthorizationDecisionStatement.
 
メソッドの概要
protected abstract  Action createAction(Element actionElement)
          Creates appropriate Action Instance
protected abstract  EvidenceBase createEvidence(Element evidenceElement)
          Creates appropriate Evidence Instance
protected abstract  Subject createSubject(Element subjectElement)
          Creates appropriate Subject Instance
 List getAction()
          Returns the action(s) from AuthorizationStatement.
 int getDecision()
          Returns the decision for AuthorizationStatement.
 String getResource()
          Returns the resource from AuthorizationStatement
 int getStatementType()
          Returns the real type of statement.
 String toString()
          Returns a String representation of the AuthorizationStatement.
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the AuthorizationStatement.
 
クラス com.sun.identity.saml.assertion.SubjectStatement から継承されたメソッド
getSubject, setSubject
 

フィールドの詳細

_evidence

protected EvidenceBase _evidence
コンストラクタの詳細

AuthorizationDecisionStatementBase

protected AuthorizationDecisionStatementBase()
Default constructor


AuthorizationDecisionStatementBase

public AuthorizationDecisionStatementBase(Element element)
                                   throws SAMLException
Constructs an AuthorizationStatement 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.

AuthorizationDecisionStatementBase

public AuthorizationDecisionStatementBase(Subject subject,
                                          String resource,
                                          int decision,
                                          List action,
                                          EvidenceBase evidence)
                                   throws SAMLException
Constructs an instance of AuthorizationDecisionStatement.

パラメータ:
subject - (required) A Subject object
resource - (required) A String identifying the resource to which access authorization is sought.
decision - (required) The decision rendered by the issuer with respect to the specified resource. The value is of the DecisionType simple type.
action - (required) A List of Action objects specifying the set of actions authorized to be performed on the specified resource.
evidence - (optional) An Evidence object representing a set of assertions that the issuer replied on in making decisions.
例外:
SAMLException - if there is an error in the sender.

AuthorizationDecisionStatementBase

public AuthorizationDecisionStatementBase(Subject subject,
                                          String resource,
                                          int decision,
                                          List action)
                                   throws SAMLException
Constructs a AuthorizationDecisionStatement instance.

パラメータ:
subject - (required) A Subject object
resource - (required) A String identifying the resource to which access authorization is sought.
decision - (required) The decision rendered by the issuer with respect to the specified resource. The value is of the DecisionType simple type.
action - (required) A List of Action objects specifying the set of actions authorized to be performed on the specified resource.
例外:
SAMLException - if there is an error in the sender.
メソッドの詳細

createEvidence

protected abstract EvidenceBase createEvidence(Element evidenceElement)
                                        throws SAMLException
Creates appropriate Evidence Instance

パラメータ:
evidenceElement - the Evidence Element
戻り値:
the Evidence Object
例外:
SAMLException

createSubject

protected abstract Subject createSubject(Element subjectElement)
                                  throws SAMLException
Creates appropriate Subject Instance

パラメータ:
subjectElement - the Subject Element
戻り値:
the Subject Object
例外:
SAMLException

createAction

protected abstract Action createAction(Element actionElement)
                                throws SAMLException
Creates appropriate Action Instance

パラメータ:
actionElement - the Action Element
戻り値:
the Action Object
例外:
SAMLException

getAction

public List getAction()
Returns the action(s) from AuthorizationStatement.

戻り値:
A List of Action object(s) specifying the set of actions authorized to be performed on the specified resource.

getResource

public String getResource()
Returns the resource from AuthorizationStatement

戻り値:
A String identifying the resource to which access authorization is sought.

getDecision

public int getDecision()
Returns the decision for AuthorizationStatement.

戻り値:
The decision string such as permit deny indetereminate

getStatementType

public int getStatementType()
Returns the real type of statement. This method returns Statement.AUTHORIZATION_DECISION_STATEMENT.

定義:
クラス Statement 内の getStatementType
戻り値:
Statement.AUTHORIZATION_DECISION_STATEMENT.

toString

public String toString()
Returns a String representation of the AuthorizationStatement.

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

toString

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

定義:
クラス 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 <AuthorizationDecisionStatement> element.