Class XACMLAuthzDecisionStatementImpl
- java.lang.Object
-
- com.sun.identity.xacml.saml2.impl.XACMLAuthzDecisionStatementImpl
-
- All Implemented Interfaces:
Statement
,XACMLAuthzDecisionStatement
public class XACMLAuthzDecisionStatementImpl extends Object implements XACMLAuthzDecisionStatement
This is the default implementation of interfaceXACMLAuthzDecisionStatement
.<xs:element name="XACMLAuthzDecisionStatement" type="xacml-saml:XACMLAuthzDecisionStatementType"/> <xs:complexType name="XACMLAuthzDecisionStatementType"> <xs:complexContent> <xs:extension base="saml:StatementAbstractType"> <xs:sequence> <xs:element ref="xacml-context:Response"/> <xs:element ref="xacml-context:Request" minOccurs="0"/> <xs:sequence> <xs:extension> <xs:complexContent> <xs:complexType>
Schema for the base type is<complexType name="StatementAbstractType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description XACMLAuthzDecisionStatementImpl()
Constructs anXACMLAuthzDecisionStatement
objectXACMLAuthzDecisionStatementImpl(String xml)
Constructs anXACMLAuthzDecisionStatementImpl
object from an XML stringXACMLAuthzDecisionStatementImpl(Element element)
Constructs anXACMLAuthzDecisionStatementImpl
object from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Request
getRequest()
ReturnsRequest
element of this objectResponse
getResponse()
ReturnsResponse
element of this objectboolean
isMutable()
Checks if the object is mutablevoid
makeImmutable()
Makes the object immutablevoid
setRequest(Request request)
SetsRequest
element of this object.void
setResponse(Response response)
SetsResponse
element of this objectString
toXMLString()
Returns a string representationString
toXMLString(boolean includeNSPrefix, boolean declareNS)
Returns a string representation
-
-
-
Constructor Detail
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl()
Constructs anXACMLAuthzDecisionStatement
object
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl(String xml) throws XACMLException
Constructs anXACMLAuthzDecisionStatementImpl
object from an XML string- Parameters:
xml
- string representing anXACMLAuthzDecisionStatementImpl
object- Throws:
XACMLException
- if the XML string could not be processed
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl(Element element) throws XACMLException
Constructs anXACMLAuthzDecisionStatementImpl
object from an XML DOM element- Parameters:
element
- XML DOM element representing anXACMLAuthzDecisionStatementImpl
object- Throws:
XACMLException
- if the DOM element could not be processed
-
-
Method Detail
-
getResponse
public Response getResponse()
ReturnsResponse
element of this object- Specified by:
getResponse
in interfaceXACMLAuthzDecisionStatement
- Returns:
- the
Response
element of this object
-
setResponse
public void setResponse(Response response) throws XACMLException
SetsResponse
element of this object- Specified by:
setResponse
in interfaceXACMLAuthzDecisionStatement
- Parameters:
response
- XACML contextResponse
element to be set in this object.- Throws:
XACMLException
- if the object is immutable and response is null.
-
getRequest
public Request getRequest()
ReturnsRequest
element of this object- Specified by:
getRequest
in interfaceXACMLAuthzDecisionStatement
- Returns:
- the
Request
element of this object
-
setRequest
public void setRequest(Request request) throws XACMLException
SetsRequest
element of this object.- Specified by:
setRequest
in interfaceXACMLAuthzDecisionStatement
- Parameters:
request
- XACML contextRequest
element to be set in this object.- Throws:
XACMLException
- if the object is immutable.
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLString
in interfaceStatement
- Specified by:
toXMLString
in interfaceXACMLAuthzDecisionStatement
- Returns:
- a string representation
- Throws:
XACMLException
- if conversion fails for any reason
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string representation- Specified by:
toXMLString
in interfaceStatement
- Specified by:
toXMLString
in interfaceXACMLAuthzDecisionStatement
- Parameters:
includeNSPrefix
- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared within the Element.- Returns:
- a string representation
- Throws:
XACMLException
- if conversion fails for any reason
-
isMutable
public boolean isMutable()
Checks if the object is mutable- Specified by:
isMutable
in interfaceStatement
- Specified by:
isMutable
in interfaceXACMLAuthzDecisionStatement
- Returns:
true
if the object is mutable,false
otherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutable
in interfaceStatement
- Specified by:
makeImmutable
in interfaceXACMLAuthzDecisionStatement
-
-