Package org.gluu.oxauth.crypto.signature
Interface SignatureVerification
- All Known Implementing Classes:
SHA256withECDSASignatureVerification
public interface SignatureVerification
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckSignature(X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature) booleancheckSignature(PublicKey publicKey, byte[] signedBytes, byte[] signature) decodePublicKey(byte[] encodedPublicKey) byte[]hash(byte[] bytes) byte[]
-
Method Details
-
checkSignature
boolean checkSignature(X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature) throws SignatureException - Throws:
SignatureException
-
checkSignature
boolean checkSignature(PublicKey publicKey, byte[] signedBytes, byte[] signature) throws SignatureException - Throws:
SignatureException
-
decodePublicKey
- Throws:
SignatureException
-
hash
byte[] hash(byte[] bytes) -
hash
-