Class DigestVerifierImpl

    • Constructor Detail

      • DigestVerifierImpl

        public DigestVerifierImpl()
    • Method Detail

      • verify

        public boolean verify​(String digestFromRequest,
                              String body)
        Description copied from interface: DigestVerifier
        Verifies digest header value compliance with message body. The only hash algorithms that may be used to calculate the Digest within the context of this specification are SHA-256 and SHA-512 as defined in [RFC5843].
        Specified by:
        verify in interface DigestVerifier
        Parameters:
        digestFromRequest - Request header which contains a Hash of the message body.
        body - Message body form request
        Returns:
        true if digest header is compliant with message body. false otherwise.