Class StatusCodeImpl

  • All Implemented Interfaces:
    StatusCode

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

    
     Schema:
      <xs:element name="StatusCode" type="xacml-context:StatusCodeType"/>
      <xs:complexType name="StatusCodeType">
          <xs:sequence>
              <xs:element ref="xacml-context:StatusCode" minOccurs="0"/>
          <xs:sequence>
          <xs:attribute name="Value" type="xs:anyURI" use="required"/>
      <xs:complexType>
     
    • Constructor Detail

      • StatusCodeImpl

        public StatusCodeImpl​(String xml)
                       throws XACMLException
        Constructs a StatusCode object from an XML string
        Parameters:
        xml - string representing a StatusCode object
        Throws:
        SAMLException - if the XML string could not be processed
        XACMLException
      • 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:
        SAMLException - if the DOM element could not be processed
        XACMLException
    • Method Detail

      • getValue

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

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

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws XACMLException
        Returns a string representation
        Specified by:
        toXMLString in interface StatusCode
        Parameters:
        includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - 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 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