|
|||||||||
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)
This constructor builds an AuthorizationStatement element from an existing XML block |
|
AuthorizationDecisionStatement(Subject subject,
java.lang.String resource,
int decision,
java.util.List action)
Constructor for AuthorizationDecisionStatement |
|
AuthorizationDecisionStatement(Subject subject,
java.lang.String resource,
int decision,
java.util.List action,
Evidence evidence)
Constructor for AuthorizationDecisionStatement |
Method Summary | |
java.util.List |
getAction()
Get the action(s) from AuthorizationStatement |
int |
getDecision()
Get the decision for AuthorizationStatement |
Evidence |
getEvidence()
Get the evidence from AuthorizationStatement |
java.lang.String |
getResource()
Get the resource from AuthorizationStatement |
int |
getStatementType()
Get the real type of statement. |
java.lang.String |
toString()
Create a String representation of the AuthorizationStatement |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Create 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
element
- : representing a DOM tree elementSAMLException:
- An SAMLException implies that 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
subject[required]:
- A Subject objectresource[required]:
- A String indentifying the resource to which
access authorization is sought.decision[required]:
- An integer representing the decision. 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:
- An SAMLException implies that there is an error
in the sender.public AuthorizationDecisionStatement(Subject subject, java.lang.String resource, int decision, java.util.List action) throws SAMLException
subject[required]:
- A Subject objectresource[required]:
- A String indentifying the resource to which
access authorization is sought.decision[required]:
- An integer representing the decision. 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:
- An SAMLException implies that there is an error
in the sender.Method Detail |
public java.util.List getAction()
public Evidence getEvidence()
public java.lang.String getResource()
public int getDecision()
public int getStatementType()
getStatementType
in class Statement
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean includeNS, boolean declareNS)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |