|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.saml.assertion.Statement | +--com.sun.identity.saml.assertion.SubjectStatement | +--com.sun.identity.saml.assertion.AuthorizationDecisionStatement
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.
Inner Class Summary | |
static class |
AuthorizationDecisionStatement.DecisionType
The DecisionType is an inner class defining constants for the
type of Decisions than can be conveyed by an
AuthorizationDecisionStatement . |
Fields inherited from class com.sun.identity.saml.assertion.Statement |
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED |
Constructor Summary | |
AuthorizationDecisionStatement(org.w3c.dom.Element element)
Constructs an AuthorizationStatement element from an
existing XML block. |
|
AuthorizationDecisionStatement(Subject subject,
java.lang.String resource,
int decision,
java.util.List action)
Constructs a AuthorizationDecisionStatement instance. |
|
AuthorizationDecisionStatement(Subject subject,
java.lang.String resource,
int decision,
java.util.List action,
Evidence evidence)
Constructs an instance of AuthorizationDecisionStatement . |
Method Summary | |
java.util.List |
getAction()
Returns the action(s) from AuthorizationStatement . |
int |
getDecision()
Returns the decision for AuthorizationStatement . |
Evidence |
getEvidence()
Returns the evidence from AuthorizationStatement . |
java.lang.String |
getResource()
Returns the resource from AuthorizationStatement |
int |
getStatementType()
Returns the real type of statement. |
java.lang.String |
toString()
Returns a String representation of the AuthorizationStatement . |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the AuthorizationStatement . |
Methods inherited from class com.sun.identity.saml.assertion.SubjectStatement |
getSubject, setSubject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AuthorizationDecisionStatement(org.w3c.dom.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, java.lang.String resource, int decision, java.util.List action, Evidence 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, java.lang.String resource, int decision, java.util.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.Method Detail |
public java.util.List getAction()
AuthorizationStatement
.public Evidence getEvidence()
AuthorizationStatement
.public java.lang.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 java.lang.String toString()
AuthorizationStatement
.toString
in class java.lang.Object
<AuthorizationDecisionStatement
element.public java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |