public class AuthorizationDecisionStatement extends AuthorizationDecisionStatementBase
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.Modifier | Constructor and Description |
---|---|
protected |
AuthorizationDecisionStatement()
Default constructor
|
|
AuthorizationDecisionStatement(Element element)
Constructs an
AuthorizationStatement element from an
existing XML block. |
|
AuthorizationDecisionStatement(Subject subject,
String resource,
int decision,
List action)
Constructs a
AuthorizationDecisionStatement instance. |
|
AuthorizationDecisionStatement(Subject subject,
String resource,
int decision,
List action,
EvidenceBase evidence)
Constructs an instance of
AuthorizationDecisionStatement . |
Modifier and Type | Method and Description |
---|---|
protected Action |
createAction(Element actionElement)
Creates appropriate Action Instance
|
protected EvidenceBase |
createEvidence(Element evidenceElement)
Creates appropriate Evidence Instance
|
protected Subject |
createSubject(Element subjectElement)
Creates appropriate Subject Instance
|
Evidence |
getEvidence()
Returns the evidence from
AuthorizationStatement . |
getAction, getDecision, getResource, getStatementType, toString, toString
getSubject, setSubject
protected AuthorizationDecisionStatement()
public AuthorizationDecisionStatement(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 AuthorizationDecisionStatement(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 AuthorizationDecisionStatement(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 EvidenceBase createEvidence(Element evidenceElement) throws SAMLException
AuthorizationDecisionStatementBase
createEvidence
in class AuthorizationDecisionStatementBase
evidenceElement
- the Evidence ElementSAMLException
protected Subject createSubject(Element subjectElement) throws SAMLException
AuthorizationDecisionStatementBase
createSubject
in class AuthorizationDecisionStatementBase
subjectElement
- the Subject ElementSAMLException
protected Action createAction(Element actionElement) throws SAMLException
AuthorizationDecisionStatementBase
createAction
in class AuthorizationDecisionStatementBase
actionElement
- the Action ElementSAMLException
public Evidence getEvidence()
AuthorizationStatement
.Copyright © 2010-2018, ForgeRock All Rights Reserved.