Package org.gluu.oxauth.crypto.signature
Interface SignatureVerification
-
- All Known Implementing Classes:
SHA256withECDSASignatureVerification
public interface SignatureVerification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckSignature(java.security.cert.X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature)booleancheckSignature(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature)java.security.PublicKeydecodePublicKey(byte[] encodedPublicKey)byte[]hash(byte[] bytes)byte[]hash(java.lang.String str)
-
-
-
Method Detail
-
checkSignature
boolean checkSignature(java.security.cert.X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature) throws SignatureException- Throws:
SignatureException
-
checkSignature
boolean checkSignature(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature) throws SignatureException- Throws:
SignatureException
-
decodePublicKey
java.security.PublicKey decodePublicKey(byte[] encodedPublicKey) throws SignatureException- Throws:
SignatureException
-
hash
byte[] hash(byte[] bytes)
-
hash
byte[] hash(java.lang.String str)
-
-