Package com.sun.identity.xacml.saml2
Interface XACMLAuthzDecisionQuery
- All Superinterfaces:
RequestAbstract,XmlSerializable
- All Known Implementing Classes:
XACMLAuthzDecisionQueryImpl
The
XACMLAuthzDecisionQuery element is a SAML Query that
extends SAML Protocol schema type RequestAbstractType.
It allows an XACML PEP to submit an XACML Request Context in a SAML
Query along with other information. This element is an alternative to
SAML defined <samlp:AuthzDecisionQuery> that allows an
XACML PEP to communicate with an XACML PDP using SAML2 protocol.
Schema:
<xs:element name="XACMLAuthzDecisionQuery"
type="XACMLAuthzDecisionQueryType"/>
<xs:complexType name="XACMLAuthzDecisionQueryType">
<xs:complexContent>
<xs:extension base="samlp:RequestAbstractType">
<xs:sequence>
<xs:element ref="xacml-context:Request"/>
<xs:sequence>
<xs:attribute name="InputContextOnly"
type="boolean"
use="optional"
default="false"/>
<xs:attribute name="ReturnContext"
type="boolean"
use="optional"
default="false"/>
<xs:extension>
<xs:complexContent>
<xs:complexType>
Schema for base:
<complexType name="RequestAbstractType" abstract="true">
<sequence>
<element ref="saml:Issuer" minOccurs="0"/>
<element ref="ds:Signature" minOccurs="0"/>
<element ref="samlp:Extensions" minOccurs="0"/>
<sequence>
<attribute name="ID" type="ID" use="required"/>
<attribute name="Version" type="string" use="required"/>
<attribute name="IssueInstant" type="dateTime" use="required"/>
<attribute name="Destination" type="anyURI" use="optional"/>
<attribute name="Consent" type="anyURI" use="optional"/>
<complexType>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the XML attribute boolean value which governs the source of information that the PDP is allowed to use in making an authorization decision.Returns thexacml-context:Requestelement of this objectbooleanReturns the XML attribute boolean value which provides means to PEP to request that anxacml-context:Requestelement be included in theXACMlAuthzDecisionStatementresulting from the request.booleanChecks if the object is mutablevoidMakes the object immutablevoidsetInputContextOnly(boolean inputContextOnly) Sets the XML attribute boolean value which governs the source of information that the PDP is allowed to use in making an authorization decision.voidsetRequest(Request request) Sets thexacml-context:Requestelement of this objectvoidsetReturnContext(boolean returnContext) Sets the boolean value for this XML attributeMethods inherited from interface com.sun.identity.saml2.protocol.RequestAbstract
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, isSignatureValid, isSigned, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, signMethods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
getInputContextOnly
boolean getInputContextOnly()Returns the XML attribute boolean value which governs the source of information that the PDP is allowed to use in making an authorization decision. If this attribute is "true" then it indiactes that the authorization decision has been made solely on the basis of information contained in theXACMLAuthzDecisionQuery; no external attributes have been used. If this value is "false" then the decision may have been made on the basis of external attributes not conatined in theXACMLAuthzDecisionQuery.- Returns:
booleanindicating the value of this attribute.
-
setInputContextOnly
Sets the XML attribute boolean value which governs the source of information that the PDP is allowed to use in making an authorization decision. If this attribute is "true" then it indicates to the PDP that the authorization decision has to be made solely on the basis of information contained in theXACMLAuthzDecisionQuery; no external attributes may be used. If this value is "false" then the decision can be made on the basis of external attributes not conatined in theXACMlAuthzDecisionQuery.- Parameters:
inputContextOnly-booleanindicating the value of this attribute.- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
getReturnContext
boolean getReturnContext()Returns the XML attribute boolean value which provides means to PEP to request that anxacml-context:Requestelement be included in theXACMlAuthzDecisionStatementresulting from the request. It also governs the contents of thatRequestelement. If this attribute is "true" then the PDP SHALL include thexacml-context:Requestelement in theXACMLAuthzDecisionStatementelement in theXACMLResponse. Thexacml-context:RequestSHALL include all the attributes supplied by the PEP in theAuthzDecisionQuerywhich were used in making the authz decision. Other additional attributes which may have been used by the PDP may be included. If this attribute is "false" then the PDP SHALL NOT include thexacml-context:Requestelement in theXACMLAuthzDecisionStatement.- Returns:
booleanindicating the value of this attribute.
-
setReturnContext
Sets the boolean value for this XML attribute- Parameters:
returnContext-booleanindicating the value of this attribute.- Throws:
XACMLException- If the object is immutable. An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.- See Also:
-
getRequest
Request getRequest()Returns thexacml-context:Requestelement of this object- Returns:
- the
xacml-context:Requestelements of this object
-
setRequest
Sets thexacml-context:Requestelement of this object- Parameters:
request- thexacml-context:Requestelement of this object.- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
makeImmutable
void makeImmutable()Makes the object immutable- Specified by:
makeImmutablein interfaceRequestAbstract
-
isMutable
boolean isMutable()Checks if the object is mutable- Specified by:
isMutablein interfaceRequestAbstract- Returns:
trueif the object is mutable,falseotherwise
-