Interface SignatureVerification
-
- All Known Implementing Classes:
SHA256withECDSASignatureVerification
public interface SignatureVerification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkSignature(X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature)
boolean
checkSignature(PublicKey publicKey, byte[] signedBytes, byte[] signature)
PublicKey
decodePublicKey(byte[] encodedPublicKey)
byte[]
hash(byte[] bytes)
byte[]
hash(String str)
-
-
-
Method Detail
-
checkSignature
boolean checkSignature(X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature) throws io.jans.as.model.exception.SignatureException
- Throws:
io.jans.as.model.exception.SignatureException
-
checkSignature
boolean checkSignature(PublicKey publicKey, byte[] signedBytes, byte[] signature) throws io.jans.as.model.exception.SignatureException
- Throws:
io.jans.as.model.exception.SignatureException
-
decodePublicKey
PublicKey decodePublicKey(byte[] encodedPublicKey) throws io.jans.as.model.exception.SignatureException
- Throws:
io.jans.as.model.exception.SignatureException
-
hash
byte[] hash(byte[] bytes)
-
hash
byte[] hash(String str)
-
-