Class PowerAuthServerSignature
java.lang.Object
io.getlime.security.powerauth.crypto.server.signature.PowerAuthServerSignature
Class implementing processes PowerAuth Server uses to compute and validate
signatures.
- Author:
- Petr Dvorak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanverifySignatureForData(byte[] data, String signature, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration signatureConfiguration) Verify a PowerAuth signature against data using signature key list and counter.
-
Constructor Details
-
PowerAuthServerSignature
public PowerAuthServerSignature()
-
-
Method Details
-
verifySignatureForData
public boolean verifySignatureForData(byte[] data, String signature, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration signatureConfiguration) throws GenericCryptoException, CryptoProviderException Verify a PowerAuth signature against data using signature key list and counter.- Parameters:
data- Signed data.signature- Signature for the data.signatureKeys- Keys used for signature.ctrData- Hash based counter / derived signing key index.signatureConfiguration- Format and parameters of signature to verify.- Returns:
- Returns "true" if the signature matches, "false" otherwise.
- Throws:
GenericCryptoException- In case signature computation fails.CryptoProviderException- In case cryptography provider is incorrectly initialized.
-