Interface DigestVerifier
-
- All Known Implementing Classes:
DigestVerifierImpl
public interface DigestVerifier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanverify(@NonNull String digestHeader, @NonNull String body)Verifies digest header value compliance with message body.
-
-
-
Method Detail
-
verify
boolean verify(@NonNull @NonNull String digestHeader, @NonNull @NonNull String body)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].- Parameters:
digestHeader- Request header which contains a Hash of the message body.body- Message body form request- Returns:
trueif digest header is compliant with message body.falseotherwise.
-
-