Class StatusCodeImpl

java.lang.Object
com.sun.identity.xacml.context.impl.StatusCodeImpl
All Implemented Interfaces:
XmlSerializable, StatusCode

@SupportedAll public class StatusCodeImpl extends Object implements StatusCode
The StatusCode element is a container of one or more StatusCodes issuded by authorization authority.
  • Constructor Details

    • StatusCodeImpl

      public StatusCodeImpl() throws XACMLException
      Constructs a StatusCode object
      Throws:
      XACMLException
    • StatusCodeImpl

      public StatusCodeImpl(String xml) throws XACMLException
      Constructs a StatusCode object from an XML string
      Parameters:
      xml - string representing a StatusCode object
      Throws:
      XACMLException - If the XML string could not be processed.
    • StatusCodeImpl

      public StatusCodeImpl(Element element) throws XACMLException
      Constructs a StatusCode object from an XML DOM element
      Parameters:
      element - XML DOM element representing a StatusCode object
      Throws:
      XACMLException - If the DOM element could not be processed.
  • Method Details

    • getValue

      public String getValue()
      Returns the value of this object
      Specified by:
      getValue in interface StatusCode
      Returns:
      the value of this object
    • setValue

      public void setValue(String value) throws XACMLException
      Sets the value of this object
      Specified by:
      setValue in interface StatusCode
      Throws:
      XACMLException - if the object is immutable
    • getMinorCodeValue

      public String getMinorCodeValue()
      Returns the minorCodeValue of this object
      Specified by:
      getMinorCodeValue in interface StatusCode
      Returns:
      the minorCodeValue of this object
    • setMinorCodeValue

      public void setMinorCodeValue(String minorCodeValue) throws XACMLException
      Sets the minorCodeValue of this object
      Specified by:
      setMinorCodeValue in interface StatusCode
      Throws:
      XACMLException - if the object is immutable
    • toDocumentFragment

      public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws com.sun.identity.saml2.common.SAML2Exception
      Description copied from interface: XmlSerializable
      Serializes the element into an XML DocumentFragment. A default implementation is provided for compatibility with legacy code that implements XmlSerializable.toXMLString(), but it is highly recommended to override this method.
      Specified by:
      toDocumentFragment in interface XmlSerializable
      Parameters:
      document - the parent Document to create the document fragment from.
      includeNSPrefix - whether to include a namespace prefix in the document elements.
      declareNS - whether to declare any namespaces or assume that they are already declared.
      Returns:
      the XML document fragment representing this SAML2 element.
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the element cannot be serialized for any reason.
    • isMutable

      public boolean isMutable()
      Checks if the object is mutable
      Specified by:
      isMutable in interface StatusCode
      Returns:
      true if the object is mutable, false otherwise
    • makeImmutable

      public void makeImmutable()
      Makes the object immutable
      Specified by:
      makeImmutable in interface StatusCode