Class DigestVerifierImpl
- java.lang.Object
-
- de.adorsys.psd2.validator.signature.impl.DigestVerifierImpl
-
- All Implemented Interfaces:
DigestVerifier
public class DigestVerifierImpl extends Object implements DigestVerifier
-
-
Constructor Summary
Constructors Constructor Description DigestVerifierImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify(String digestFromRequest, String body)Verifies digest header value compliance with message body.
-
-
-
Method Detail
-
verify
public boolean verify(String digestFromRequest, String body)
Description copied from interface:DigestVerifierVerifies 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:
verifyin interfaceDigestVerifier- Parameters:
digestFromRequest- 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.
-
-