Class StatusMessageImpl

  • All Implemented Interfaces:
    StatusMessage

    public class StatusMessageImpl
    extends Object
    implements StatusMessage
    This class defines methods for adding StatusMessage element.
    • Constructor Detail

      • StatusMessageImpl

        public StatusMessageImpl​(String value)
        Constructs the StatusMessage Object.
        Parameters:
        value - A String StatusMessage value
    • Method Detail

      • getValue

        public String getValue()
        Returns the StatusMessage value.
        Specified by:
        getValue in interface StatusMessage
        Returns:
        A String value of the StatusMessage
      • toXMLString

        public String toXMLString()
                           throws SAML2Exception
        Returns the StatusMessage in an XML document String format based on the StatusMessage schema described above.
        Specified by:
        toXMLString in interface StatusMessage
        Returns:
        An XML String representing the StatusMessage.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns the StatusMessage in an XML document String format based on the StatusMessage schema described above.
        Specified by:
        toXMLString in interface StatusMessage
        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 XML String representing the StatusMessage.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.