public abstract class AuthorizationDecisionStatementBase extends SubjectStatement
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.Modifier | Constructor and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
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 . |
getSubject, setSubject
protected AuthorizationDecisionStatementBase()
public AuthorizationDecisionStatementBase(Element element) throws SAMLException
AuthorizationStatement
element from an
existing XML block.element
- representing a DOM tree elementSAMLException
- if there is an error in the sender or in
the element definition.public AuthorizationDecisionStatementBase(Subject subject, String resource, int decision, List action, EvidenceBase evidence) throws SAMLException
AuthorizationDecisionStatement
.subject
- (required) A Subject objectresource
- (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.public AuthorizationDecisionStatementBase(Subject subject, String resource, int decision, List action) throws SAMLException
AuthorizationDecisionStatement
instance.subject
- (required) A Subject objectresource
- (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.protected abstract EvidenceBase createEvidence(Element evidenceElement) throws SAMLException
evidenceElement
- the Evidence ElementSAMLException
protected abstract Subject createSubject(Element subjectElement) throws SAMLException
subjectElement
- the Subject ElementSAMLException
protected abstract Action createAction(Element actionElement) throws SAMLException
actionElement
- the Action ElementSAMLException
public List getAction()
AuthorizationStatement
.public String getResource()
AuthorizationStatement
public int getDecision()
AuthorizationStatement
.permit
deny
indetereminate
public int getStatementType()
Statement.AUTHORIZATION_DECISION_STATEMENT
.getStatementType
in class Statement
Statement.AUTHORIZATION_DECISION_STATEMENT
.public String toString()
AuthorizationStatement
.public String toString(boolean includeNS, boolean declareNS)
AuthorizationStatement
.toString
in class SubjectStatement
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.<AuthorizationDecisionStatement>
element.Copyright © 2010-2018, ForgeRock All Rights Reserved.