Interface RequestAbstract

    • Method Detail

      • getSignature

        String getSignature()
        Returns the Signature Object as a string.
        Returns:
        the Signature object as a string.
      • sign

        void sign​(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig)
           throws SAML2Exception
        Signs the Request.
        Parameters:
        signingConfig - The signing configuration.
        Throws:
        SAML2Exception - if it could not sign the Request.
      • setID

        void setID​(String id)
            throws SAML2Exception
        Sets the value of the ID attribute.
        Parameters:
        id - the new value of ID attribute.
        Throws:
        SAML2Exception - if the object is immutable.
        See Also:
        getID()
      • getID

        String getID()
        Returns the value of the ID attribute.
        Returns:
        the value of ID attribute.
        See Also:
        setID(String)
      • setVersion

        void setVersion​(String version)
                 throws SAML2Exception
        Sets the value of the Version attribute.
        Parameters:
        version - the value of Version attribute.
        Throws:
        SAML2Exception - if the object is immutable.
        See Also:
        getVersion()
      • getVersion

        String getVersion()
        Returns the value of the Version attribute.
        Returns:
        value of Version attribute.
        See Also:
        setVersion(String)
      • setIssueInstant

        void setIssueInstant​(Date dateTime)
                      throws SAML2Exception
        Sets the value of IssueInstant attribute.
        Parameters:
        dateTime - new value of the IssueInstant attribute.
        Throws:
        SAML2Exception - if the object is immutable.
        See Also:
        getIssueInstant()
      • getIssueInstant

        Date getIssueInstant()
        Returns the value of IssueInstant attribute.
        Returns:
        value of the IssueInstant attribute.
        See Also:
        setIssueInstant(Date)
      • setDestination

        void setDestination​(String destinationURI)
                     throws SAML2Exception
        Sets the value of the Destination attribute.
        Parameters:
        destinationURI - new value of Destination attribute.
        Throws:
        SAML2Exception - if the object is immutable.
        See Also:
        getDestination()
      • getDestination

        String getDestination()
        Returns the value of the Destination attribute.
        Returns:
        the value of Destination attribute.
        See Also:
        setDestination(String)
      • setConsent

        void setConsent​(String consent)
                 throws SAML2Exception
        Sets the value of the Consent attribute.
        Parameters:
        consent - new value of Consent attribute.
        Throws:
        SAML2Exception - if the object is immutable.
        See Also:
        getConsent()
      • getConsent

        String getConsent()
        Returns the value of the Consent attribute.
        Returns:
        value of Consent attribute.
        See Also:
        setConsent(String)
      • isSigned

        boolean isSigned()
        Returns true if message is signed.
        Returns:
        true if message is signed.
      • isSignatureValid

        boolean isSignatureValid​(Set<X509Certificate> verificationCerts)
                          throws SAML2Exception
        Return whether the signature is valid or not.
        Parameters:
        verificationCerts - Certificates containing the public keys which may be used for signature verification; This certificate may also may be used to check against the certificate included in the signature.
        Returns:
        true if the signature is valid; false otherwise.
        Throws:
        SAML2Exception - if the signature could not be verified
      • makeImmutable

        void makeImmutable()
        Makes this object immutable.
      • isMutable

        boolean isMutable()
        Returns true if object is mutable.
        Returns:
        true if object is mutable.