Class XACMLAuthzDecisionQueryTypeImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
org.opensaml.saml.common.AbstractSignableSAMLObject
org.opensaml.saml.saml2.core.impl.RequestAbstractTypeImpl
org.opensaml.xacml.profile.saml.impl.XACMLAuthzDecisionQueryTypeImpl
- All Implemented Interfaces:
XMLObject
,SAMLObject
,SignableSAMLObject
,RequestAbstractType
,XACMLAuthzDecisionQueryType
,XACMLObject
,SignableXMLObject
public class XACMLAuthzDecisionQueryTypeImpl
extends RequestAbstractTypeImpl
implements XACMLAuthzDecisionQueryType
A concrete implementation of
XACMLAuthzDecisionQueryType
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XSBooleanValue
CombinePolicies attribute value.private XSBooleanValue
InputContextOnly attribute value.private List<PolicyType>
Policy children.private List<PolicySetType>
PolicySet children.private ReferencedPoliciesType
ReeferencedPolicies child.private RequestType
The xacml-context:Request.private XSBooleanValue
ReturnContext attribute value.Default = false.Fields inherited from interface org.opensaml.saml.saml2.core.RequestAbstractType
CONSENT_ATTRIB_NAME, DESTINATION_ATTRIB_NAME, EXPLICIT_CONSENT, ID_ATTRIB_NAME, IMPLICIT_CONSENT, INAPPLICABLE_CONSENT, ISSUE_INSTANT_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_QNAME, OBTAINED_CONSENT, PRIOR_CONSENT, TYPE_LOCAL_NAME, TYPE_NAME, UNAVAILABLE_CONSENT, UNSPECIFIED_CONSENT, VERSION_ATTRIB_NAME
Fields inherited from interface org.opensaml.xacml.profile.saml.XACMLAuthzDecisionQueryType
COMBINEPOLICIES_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME_XACML10, DEFAULT_ELEMENT_NAME_XACML11, DEFAULT_ELEMENT_NAME_XACML20, DEFAULT_ELEMENT_NAME_XACML30, INPUTCONTEXTONLY_ATTRIB_NAME, RETURNCONTEXT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME_XACML10, TYPE_NAME_XACML11, TYPE_NAME_XACML20, TYPE_NAME_XACML30
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XACMLAuthzDecisionQueryTypeImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns if the PDP can combine policies from the query and local policies.True then use only information in the XACMLAuthzDecisionQuery, if false could use external XACML attributes.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the policies to be used while rendering a decision.Gets the policy sets to be used while rendering a decision.Gets the reference to the policies to be used while rendering a decision.Gets the request of the query.If true then include theRequestType
in the response.Returns if the PDP can combine policies from the query and local policies.True then use only information in the XACMLAuthzDecisionQuery, if false could use external XACML attributes.If true then include theRequestType
in the response.void
setCombinePolicies
(Boolean combine) Sets if the PDP can combine policies from this query and the one locally.void
setCombinePolicies
(XSBooleanValue combine) Sets if the PDP can combine policies from this query and the one locally.void
setInputContextOnly
(Boolean flag) Sets if external attributes is allowed in the decision, true if it's allowed.void
Sets if external attributes is allowed in the decision, true if it's allowed.void
Sets the reference to the policies to be used while rendering a decision.void
setRequest
(RequestType req) Set's the XACML Request.void
setReturnContext
(Boolean flag) Set's if theRequestType
should be included inside the request message.void
Set's if theRequestType
should be included inside the request message.Methods inherited from class org.opensaml.saml.saml2.core.impl.RequestAbstractTypeImpl
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignatureReferenceID, getVersion, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion
Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignature
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.saml.saml2.core.RequestAbstractType
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getVersion, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion
Methods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceID
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
policies
Policy children. -
policySets
PolicySet children. -
referencedPolicies
ReeferencedPolicies child. -
request
The xacml-context:Request. -
inputContextOnly
InputContextOnly attribute value. Default = false. -
returnContext
ReturnContext attribute value.Default = false. -
combinePolicies
CombinePolicies attribute value. Default = true.
-
-
Constructor Details
-
XACMLAuthzDecisionQueryTypeImpl
protected XACMLAuthzDecisionQueryTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor.- Parameters:
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespace
-
-
Method Details
-
getCombinePoliciesXSBooleanValue
Returns if the PDP can combine policies from the query and local policies.- Specified by:
getCombinePoliciesXSBooleanValue
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- XSBooleanValue true if the PDP can combine policies from the query and locally
-
getInputContextOnlyXSBooleanValue
True then use only information in the XACMLAuthzDecisionQuery, if false could use external XACML attributes.- Specified by:
getInputContextOnlyXSBooleanValue
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- if the use of just attributes in the XACMLAuthzDecisionQuery is allowed
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Overrides:
getOrderedChildren
in classRequestAbstractTypeImpl
- Returns:
- ordered list of child elements
-
getRequest
Gets the request of the query.- Specified by:
getRequest
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- XACMLRequest The request inside the query
-
getReturnContextXSBooleanValue
If true then include theRequestType
in the response.- Specified by:
getReturnContextXSBooleanValue
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- boolean true if the
RequestType
should be included in the response
-
isCombinePolicies
Returns if the PDP can combine policies from the query and local policies.- Specified by:
isCombinePolicies
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- true if the PDP can combine policies from the query and locally
-
isInputContextOnly
True then use only information in the XACMLAuthzDecisionQuery, if false could use external XACML attributes.- Specified by:
isInputContextOnly
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- boolean true then use of just attributes in the XACMLAuthzDecisionQuery is allowed
-
isReturnContext
If true then include theRequestType
in the response.- Specified by:
isReturnContext
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- boolean if the
RequestType
should be included in the response
-
setCombinePolicies
Sets if the PDP can combine policies from this query and the one locally.- Specified by:
setCombinePolicies
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
combine
- If true then the PDP can combine policies from this query and the one locally
-
setCombinePolicies
Sets if the PDP can combine policies from this query and the one locally.- Specified by:
setCombinePolicies
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
combine
- If true then the PDP can combine policies from this query and the one locally
-
setInputContextOnly
Sets if external attributes is allowed in the decision, true if it's allowed.- Specified by:
setInputContextOnly
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
flag
- if external attributes is allowed in the decision, true if it's allowed.
-
setInputContextOnly
Sets if external attributes is allowed in the decision, true if it's allowed.- Specified by:
setInputContextOnly
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
flag
- if external attributes is allowed in the decision, true if it's allowed.
-
setRequest
Set's the XACML Request.- Specified by:
setRequest
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
req
- The request of the decision query
-
setReturnContext
Set's if theRequestType
should be included inside the request message.- Specified by:
setReturnContext
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
flag
- is true if theRequestType
should be included inside the request message
-
setReturnContext
Set's if theRequestType
should be included inside the request message.- Specified by:
setReturnContext
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
flag
- is true if theRequestType
should be included inside the request message
-
getPolicies
Gets the policies to be used while rendering a decision.- Specified by:
getPolicies
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- policies to be used while rendering a decision
-
getPolicySets
Gets the policy sets to be used while rendering a decision.- Specified by:
getPolicySets
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- policy sets to be used while rendering a decision
-
getReferencedPolicies
Gets the reference to the policies to be used while rendering a decision.- Specified by:
getReferencedPolicies
in interfaceXACMLAuthzDecisionQueryType
- Returns:
- references to the policies to be used while rendering a decision
-
setReferencedPolicies
Sets the reference to the policies to be used while rendering a decision.- Specified by:
setReferencedPolicies
in interfaceXACMLAuthzDecisionQueryType
- Parameters:
pols
- reference to the policies to be used while rendering a decision
-