Class StatusImpl

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

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

    • StatusImpl

      public StatusImpl() throws XACMLException
      Constructs a Status object
      Throws:
      XACMLException
    • StatusImpl

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

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

    • getStatusCode

      public StatusCode getStatusCode()
      Returns the StatusCode of this object
      Specified by:
      getStatusCode in interface Status
      Returns:
      the StatusCode of this object
    • setStatusCode

      public void setStatusCode(StatusCode statusCode) throws XACMLException
      Sets the StatusCode of this object
      Specified by:
      setStatusCode in interface Status
      Throws:
      XACMLException - if the object is immutable
    • getStatusMessage

      public StatusMessage getStatusMessage()
      Returns the StatusMessage of this object
      Specified by:
      getStatusMessage in interface Status
      Returns:
      the StatusMessage of this object
    • setStatusMessage

      public void setStatusMessage(StatusMessage statusMessage) throws XACMLException
      Sets the StatusMessage of this object
      Specified by:
      setStatusMessage in interface Status
      Throws:
      XACMLException - if the object is immutable
    • getStatusDetail

      public StatusDetail getStatusDetail()
      Returns the StatusDetail of this object
      Specified by:
      getStatusDetail in interface Status
      Returns:
      the StatusDetail of this object
    • setStatusDetail

      public void setStatusDetail(StatusDetail statusDetail) throws XACMLException
      Sets the StatusDetail of this object
      Specified by:
      setStatusDetail in interface Status
      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 Status
      Returns:
      true if the object is mutable, false otherwise
    • makeImmutable

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