Package io.jans.fido2.service.verifier
Class SignatureVerifier
java.lang.Object
io.jans.fido2.service.verifier.SignatureVerifier
- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDigest(int signatureAlgorithm) getSignatureChecker(int signatureAlgorithm) booleanisSupported(int signatureAlgorithm) Whether the configured crypto provider can verify signatures for the given COSE algorithm code point.voidverifySignature(byte[] signature, byte[] signatureBase, Certificate certificate, int signatureAlgorithm) voidverifySignature(byte[] signature, byte[] signatureBase, PublicKey publicKey, int signatureAlgorithm)
-
Constructor Details
-
SignatureVerifier
public SignatureVerifier()
-
-
Method Details
-
verifySignature
public void verifySignature(byte[] signature, byte[] signatureBase, PublicKey publicKey, int signatureAlgorithm) -
isSupported
public boolean isSupported(int signatureAlgorithm) Whether the configured crypto provider can verify signatures for the given COSE algorithm code point. This asks the provider rather than a list, so the FIPS build reports its own, narrower capability instead of inheriting the standard build's answer. -
getSignatureChecker
-
getDigest
-
verifySignature
public void verifySignature(byte[] signature, byte[] signatureBase, Certificate certificate, int signatureAlgorithm)
-