Class ECPResponseImpl

  • All Implemented Interfaces:
    ECPResponse

    public class ECPResponseImpl
    extends Object
    implements ECPResponse
    This class implements ECPResponse element. It provides all the methods required by ECPResponse
    • Constructor Detail

      • ECPResponseImpl

        public ECPResponseImpl()
        Constructs the ECPResponse Object.
      • ECPResponseImpl

        public ECPResponseImpl​(Element element)
                        throws SAML2Exception
        Constructs the ECPRequest Object.
        Parameters:
        element - the Document Element of ECP Response object.
        Throws:
        SAML2Exception - if ECPResponse cannot be created.
      • ECPResponseImpl

        public ECPResponseImpl​(String xmlString)
                        throws SAML2Exception
        Constructs the ECPResponse Object.
        Parameters:
        xmlString - the XML String representation of this object.
        Throws:
        SAML2Exception - if ECPResponse cannot be created.
    • Method Detail

      • isMustUnderstand

        public Boolean isMustUnderstand()
        Returns value of mustUnderstand attribute.
        Specified by:
        isMustUnderstand in interface ECPResponse
        Returns:
        value of mustUnderstand attribute.
      • setMustUnderstand

        public void setMustUnderstand​(Boolean mustUnderstand)
                               throws SAML2Exception
        Sets the value of the mustUnderstand attribute.
        Specified by:
        setMustUnderstand in interface ECPResponse
        Parameters:
        mustUnderstand - the value of mustUnderstand attribute.
        Throws:
        SAML2Exception - if the object is immutable.
      • getActor

        public String getActor()
        Returns value of actor attribute.
        Specified by:
        getActor in interface ECPResponse
        Returns:
        value of actor attribute
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation
        Specified by:
        toXMLString in interface ECPResponse
        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 of this Object.
        Throws:
        SAML2Exception - ,if it could not create String object.
      • makeImmutable

        public void makeImmutable()
        Makes this object immutable.
        Specified by:
        makeImmutable in interface ECPResponse
      • isMutable

        public boolean isMutable()
        Returns true if object is mutable.
        Specified by:
        isMutable in interface ECPResponse
        Returns:
        true if object is mutable.