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 anXACMLAuthzDecisionStatementobjectXACMLAuthzDecisionStatementImpl(String xml)Constructs anXACMLAuthzDecisionStatementImplobject from an XML stringXACMLAuthzDecisionStatementImpl(Element element)Constructs anXACMLAuthzDecisionStatementImplobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestgetRequest()ReturnsRequestelement of this objectResponsegetResponse()ReturnsResponseelement of this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetRequest(Request request)SetsRequestelement of this object.voidsetResponse(Response response)SetsResponseelement of this objectStringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
Constructor Detail
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl()
Constructs anXACMLAuthzDecisionStatementobject
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl(String xml) throws XACMLException
Constructs anXACMLAuthzDecisionStatementImplobject from an XML string- Parameters:
xml- string representing anXACMLAuthzDecisionStatementImplobject- Throws:
XACMLException- if the XML string could not be processed
-
XACMLAuthzDecisionStatementImpl
public XACMLAuthzDecisionStatementImpl(Element element) throws XACMLException
Constructs anXACMLAuthzDecisionStatementImplobject from an XML DOM element- Parameters:
element- XML DOM element representing anXACMLAuthzDecisionStatementImplobject- Throws:
XACMLException- if the DOM element could not be processed
-
-
Method Detail
-
getResponse
public Response getResponse()
ReturnsResponseelement of this object- Specified by:
getResponsein interfaceXACMLAuthzDecisionStatement- Returns:
- the
Responseelement of this object
-
setResponse
public void setResponse(Response response) throws XACMLException
SetsResponseelement of this object- Specified by:
setResponsein interfaceXACMLAuthzDecisionStatement- Parameters:
response- XACML contextResponseelement to be set in this object.- Throws:
XACMLException- if the object is immutable and response is null.
-
getRequest
public Request getRequest()
ReturnsRequestelement of this object- Specified by:
getRequestin interfaceXACMLAuthzDecisionStatement- Returns:
- the
Requestelement of this object
-
setRequest
public void setRequest(Request request) throws XACMLException
SetsRequestelement of this object.- Specified by:
setRequestin interfaceXACMLAuthzDecisionStatement- Parameters:
request- XACML contextRequestelement 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:
toXMLStringin interfaceStatement- Specified by:
toXMLStringin 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:
toXMLStringin interfaceStatement- Specified by:
toXMLStringin 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:
isMutablein interfaceStatement- Specified by:
isMutablein interfaceXACMLAuthzDecisionStatement- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceStatement- Specified by:
makeImmutablein interfaceXACMLAuthzDecisionStatement
-
-