Package com.sun.identity.saml.assertion
Class AuthorizationDecisionStatement
java.lang.Object
com.sun.identity.saml.assertion.Statement
com.sun.identity.saml.assertion.SubjectStatement
com.sun.identity.saml.assertion.AuthorizationDecisionStatementBase
com.sun.identity.saml.assertion.AuthorizationDecisionStatement
@SupportedAll
public class AuthorizationDecisionStatement
extends AuthorizationDecisionStatementBase
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.-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.identity.saml.assertion.AuthorizationDecisionStatementBase
AuthorizationDecisionStatementBase.DecisionType -
Field Summary
Fields inherited from class com.sun.identity.saml.assertion.AuthorizationDecisionStatementBase
_evidenceFields inherited from class com.sun.identity.saml.assertion.SubjectStatement
_subjectFields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructorAuthorizationDecisionStatement(Subject subject, String resource, int decision, List action) Constructs aAuthorizationDecisionStatementinstance.AuthorizationDecisionStatement(Subject subject, String resource, int decision, List action, EvidenceBase evidence) Constructs an instance ofAuthorizationDecisionStatement.AuthorizationDecisionStatement(Element element) Constructs anAuthorizationStatementelement from an existing XML block. -
Method Summary
Modifier and TypeMethodDescriptionprotected ActioncreateAction(Element actionElement) Creates appropriate Action Instanceprotected EvidenceBasecreateEvidence(Element evidenceElement) Creates appropriate Evidence Instanceprotected SubjectcreateSubject(Element subjectElement) Creates appropriate Subject InstanceReturns the evidence fromAuthorizationStatement.Methods inherited from class com.sun.identity.saml.assertion.AuthorizationDecisionStatementBase
getAction, getDecision, getResource, getStatementType, toString, toStringMethods inherited from class com.sun.identity.saml.assertion.SubjectStatement
getSubject, setSubject
-
Constructor Details
-
AuthorizationDecisionStatement
protected AuthorizationDecisionStatement()Default constructor -
AuthorizationDecisionStatement
Constructs anAuthorizationStatementelement from an existing XML block.- Parameters:
element- representing a DOM tree element- Throws:
SAMLException- if there is an error in the sender or in the element definition.
-
AuthorizationDecisionStatement
public AuthorizationDecisionStatement(Subject subject, String resource, int decision, List action, EvidenceBase evidence) throws SAMLException Constructs an instance ofAuthorizationDecisionStatement.- Parameters:
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 theDecisionTypesimple 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.- Throws:
SAMLException- if there is an error in the sender.
-
AuthorizationDecisionStatement
public AuthorizationDecisionStatement(Subject subject, String resource, int decision, List action) throws SAMLException Constructs aAuthorizationDecisionStatementinstance.- Parameters:
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 theDecisionTypesimple type.action- (required) A List of Action objects specifying the set of actions authorized to be performed on the specified resource.- Throws:
SAMLException- if there is an error in the sender.
-
-
Method Details
-
createEvidence
Description copied from class:AuthorizationDecisionStatementBaseCreates appropriate Evidence Instance- Specified by:
createEvidencein classAuthorizationDecisionStatementBase- Parameters:
evidenceElement- the Evidence Element- Returns:
- the Evidence Object
- Throws:
SAMLException
-
createSubject
Description copied from class:AuthorizationDecisionStatementBaseCreates appropriate Subject Instance- Specified by:
createSubjectin classAuthorizationDecisionStatementBase- Parameters:
subjectElement- the Subject Element- Returns:
- the Subject Object
- Throws:
SAMLException
-
createAction
Description copied from class:AuthorizationDecisionStatementBaseCreates appropriate Action Instance- Specified by:
createActionin classAuthorizationDecisionStatementBase- Parameters:
actionElement- the Action Element- Returns:
- the Action Object
- Throws:
SAMLException
-
getEvidence
Returns the evidence fromAuthorizationStatement.- Returns:
- An Evidence object that the issuer replied on in making decisions.
-