com.sun.xml.wss.saml.assertion.saml20.jaxb20
Class AuthzDecisionStatement

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml20.jaxb20.StatementAbstractType
      extended by com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthzDecisionStatementType
          extended by com.sun.xml.wss.saml.assertion.saml20.jaxb20.AuthzDecisionStatement
All Implemented Interfaces:
AuthnDecisionStatement

public class AuthzDecisionStatement
extends AuthzDecisionStatementType
implements AuthnDecisionStatement

The AuthzDecisionStatement 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.


Field Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthzDecisionStatementType
action, decision, evidence, resource
 
Constructor Summary
protected AuthzDecisionStatement()
          Default constructor
  AuthzDecisionStatement(AuthzDecisionStatementType authDesStmt)
           
  AuthzDecisionStatement(String resource, String decision, List action, Evidence evidence)
          Constructs an instance of AuthzDecisionStatement.
 
Method Summary
static AuthzDecisionStatementType fromElement(Element element)
          Constructs an AuthorizationStatement element from an existing XML block.
 List<Action> getActionList()
          Gets the value of the action property.
 String getDecisionValue()
          Gets the value of the decision property.
 Evidence getEvidence()
          Gets the value of the evidence property.
 String getResource()
          Gets the value of the resource property.
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.AuthzDecisionStatementType
getAction, getDecision, setDecision, setEvidence, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

AuthzDecisionStatement

protected AuthzDecisionStatement()
Default constructor


AuthzDecisionStatement

public AuthzDecisionStatement(String resource,
                              String decision,
                              List action,
                              Evidence evidence)
Constructs an instance of AuthzDecisionStatement.

Parameters:
subject - (required) A Subject object
resource - (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.
Throws:
SAMLException - if there is an error in the sender.

AuthzDecisionStatement

public AuthzDecisionStatement(AuthzDecisionStatementType authDesStmt)
Method Detail

fromElement

public static AuthzDecisionStatementType fromElement(Element element)
                                              throws SAMLException
Constructs an AuthorizationStatement element 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.

getActionList

public List<Action> getActionList()
Description copied from interface: AuthnDecisionStatement
Gets the value of the action property.

Specified by:
getActionList in interface AuthnDecisionStatement
Returns:
Objects of the following type(s) are in the list Action

getEvidence

public Evidence getEvidence()
Description copied from class: AuthzDecisionStatementType
Gets the value of the evidence property.

Specified by:
getEvidence in interface AuthnDecisionStatement
Overrides:
getEvidence in class AuthzDecisionStatementType
Returns:
possible object is EvidenceType

getDecisionValue

public String getDecisionValue()
Description copied from interface: AuthnDecisionStatement
Gets the value of the decision property.

Specified by:
getDecisionValue in interface AuthnDecisionStatement
Returns:
object is String

getResource

public String getResource()
Description copied from class: AuthzDecisionStatementType
Gets the value of the resource property.

Specified by:
getResource in interface AuthnDecisionStatement
Overrides:
getResource in class AuthzDecisionStatementType
Returns:
possible object is String


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.