Class AbstractRequest

    • Field Detail

      • respondWiths

        protected List respondWiths
      • signature

        protected Element signature
      • requestID

        protected String requestID
      • majorVersion

        protected int majorVersion
      • minorVersion

        protected int minorVersion
      • issueInstant

        protected Date issueInstant
      • signed

        protected boolean signed
      • valid

        protected boolean valid
    • Constructor Detail

      • AbstractRequest

        protected AbstractRequest()
    • Method Detail

      • isSigned

        public boolean isSigned()
        Return whether the object is signed or not.
        Returns:
        true if the object is signed; false otherwise.
      • isSignatureValid

        public boolean isSignatureValid()
        Return whether the signature on the object is valid or not.
        Returns:
        true if the signature is valid; false otherwise.
      • signXML

        public abstract void signXML()
                              throws SAMLException
        An abstract method to sign the object.
        Throws:
        SAMLException - If could not sign the object.
      • getRespondWith

        public List getRespondWith()
        Gets 0 or more of RespondWith in the Request.
        Returns:
        A List of Strings.
      • addRespondWith

        public boolean addRespondWith​(String respondWith)
        Adds a RespondWith to the Request.
        Parameters:
        respondWith - A String that needs to be added to the Request.
        Returns:
        true if the operation is successful.
      • getSignature

        public Element getSignature()
        Gets 0 or 1 of Signature in the Request.
        Returns:
        The signature Element the Request contains. It returns null if the Request has no signature.
      • setSignature

        public boolean setSignature​(Element elem)
        Set the signature for the Request
        Parameters:
        elem - ds:Signature element
        Returns:
        true if the operation succeeds.
      • getRequestID

        public String getRequestID()
        Gets the RequestID of the Request.
        Returns:
        the RequestID of the Request.
      • setRequestID

        public boolean setRequestID​(String requestID)
        Set the RequestID of the Request.
        Parameters:
        requestID - A String that is the RequestID attribute of the Request.
        Returns:
        true if the operation is successful.
      • getMajorVersion

        public int getMajorVersion()
        Returns the MajorVersion of the Request.
        Returns:
        The MajorVersion of the Request.
      • getMinorVersion

        public int getMinorVersion()
        Returns the MinorVersion of the Request.
        Returns:
        The MinorVersion of the request.
      • setMajorVersion

        public void setMajorVersion​(int majorVersion)
        Sets the MajorVersion of the Request.
        Parameters:
        majorVersion - the intended major version for SAML Request
      • setMinorVersion

        public void setMinorVersion​(int minorVersion)
        Sets the MinorVersion of the Request.
        Parameters:
        minorVersion - the intended minor version for SAML Request
      • getIssueInstant

        public Date getIssueInstant()
        Returns the IssueInstant of the Request.
        Returns:
        the IssueInstant of the Request.
      • setIssueInstant

        public boolean setIssueInstant​(Date issueInstant)
        Set the IssueInstant of the Request.
        Parameters:
        issueInstant - a Date object representing the time when the Request is issued.
        Returns:
        true if the operation succeeds.