Package com.sun.identity.saml.protocol
Class AuthorizationDecisionQuery
- java.lang.Object
-
- com.sun.identity.saml.protocol.Query
-
- com.sun.identity.saml.protocol.SubjectQuery
-
- com.sun.identity.saml.protocol.AuthorizationDecisionQuery
-
public class AuthorizationDecisionQuery extends SubjectQuery
This concrete class extends from the abstract base classSubjectQuery. It represents the query for an authorization decision assertion. It corresponds to the<samlp:AuthorizationDecisionQueryType>in the SAML protocol schema.
-
-
Field Summary
Fields Modifier and Type Field Description protected Listactionsprotected Evidenceevidenceprotected Stringresource-
Fields inherited from class com.sun.identity.saml.protocol.SubjectQuery
subject
-
Fields inherited from class com.sun.identity.saml.protocol.Query
ATTRIBUTE_QUERY, AUTHENTICATION_QUERY, AUTHORIZATION_DECISION_QUERY, NOT_SUPPORTED_QUERY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthorizationDecisionQuery()Default ConstructorAuthorizationDecisionQuery(Subject theSubject, List theActions, Evidence theEvidence, String theResource)ConstructorAuthorizationDecisionQuery(Subject theSubject, List theActions, String theResource)ConstructorAuthorizationDecisionQuery(Element element)This constructor is used to build an Authorization Decision Query from a DOM tree that was built from the XML string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAction()Returns the List of Actions.EvidencegetEvidence()Returns theEvidenceintgetQueryType()Returns the type of the query.StringgetResource()Accessor for the ResourceStringtoString()This method translates theAuthorizationDecisionQueryto an XML document String based on theAuthorizationDecisionQueryschema.StringtoString(boolean includeNS, boolean declareNS)Create a String representation of thesamlp:AuthorizationDecisionQueryelement.-
Methods inherited from class com.sun.identity.saml.protocol.SubjectQuery
getSubject
-
-
-
-
Constructor Detail
-
AuthorizationDecisionQuery
protected AuthorizationDecisionQuery()
Default Constructor
-
AuthorizationDecisionQuery
public AuthorizationDecisionQuery(Element element) throws SAMLException
This constructor is used to build an Authorization Decision Query from a DOM tree that was built from the XML string.- Parameters:
element- the DOM tree element which contains an Authorization Decision Query.- Throws:
SAMLException- when an error occurs.
-
AuthorizationDecisionQuery
public AuthorizationDecisionQuery(Subject theSubject, List theActions, Evidence theEvidence, String theResource) throws SAMLException
Constructor- Parameters:
theSubject- The subject of the query.theActions- The List of Actions of the query.theEvidence- The evidence of the query. It could be null when there is no Evidence in the query.theResource- A string representing the resource of the query.- Throws:
SAMLException- when an error occurs.
-
AuthorizationDecisionQuery
public AuthorizationDecisionQuery(Subject theSubject, List theActions, String theResource) throws SAMLException
Constructor- Parameters:
theSubject- The subject of the query.theActions- The List of Actions of the query.theResource- A string representing the resource of the query.- Throws:
SAMLException- when an error occurs.
-
-
Method Detail
-
getAction
public List getAction()
Returns the List of Actions.- Returns:
- The Actions included in the query.
-
getEvidence
public Evidence getEvidence()
Returns theEvidence- Returns:
- the Evidence in the query. A null is returned if there is no Evidence in the query.
-
getResource
public String getResource()
Accessor for the Resource- Returns:
- A string representing the resource.
-
getQueryType
public int getQueryType()
Returns the type of the query.- Specified by:
getQueryTypein classQuery- Returns:
- an integer which is Query.AUTHORIZATION_DECISION_QUERY.
-
toString
public String toString()
This method translates theAuthorizationDecisionQueryto an XML document String based on theAuthorizationDecisionQueryschema.
-
toString
public String toString(boolean includeNS, boolean declareNS)
Create a String representation of thesamlp:AuthorizationDecisionQueryelement.
-
-