Package org.gluu.oxauth.crypto.signature
Class SHA256withECDSASignatureVerification
- java.lang.Object
-
- org.gluu.oxauth.crypto.signature.SHA256withECDSASignatureVerification
-
- All Implemented Interfaces:
SignatureVerification
@Named public class SHA256withECDSASignatureVerification extends java.lang.Object implements SignatureVerification
-
-
Constructor Summary
Constructors Constructor Description SHA256withECDSASignatureVerification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkSignature(java.security.cert.X509Certificate certificate, byte[] signedBytes, byte[] signature)
boolean
checkSignature(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature)
java.security.PublicKey
decodePublicKey(byte[] encodedPublicKey)
byte[]
hash(byte[] bytes)
byte[]
hash(java.lang.String str)
-
-
-
Method Detail
-
checkSignature
public boolean checkSignature(java.security.cert.X509Certificate certificate, byte[] signedBytes, byte[] signature) throws SignatureException
- Specified by:
checkSignature
in interfaceSignatureVerification
- Throws:
SignatureException
-
checkSignature
public boolean checkSignature(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature) throws SignatureException
- Specified by:
checkSignature
in interfaceSignatureVerification
- Throws:
SignatureException
-
decodePublicKey
public java.security.PublicKey decodePublicKey(byte[] encodedPublicKey) throws SignatureException
- Specified by:
decodePublicKey
in interfaceSignatureVerification
- Throws:
SignatureException
-
hash
public byte[] hash(byte[] bytes)
- Specified by:
hash
in interfaceSignatureVerification
-
hash
public byte[] hash(java.lang.String str)
- Specified by:
hash
in interfaceSignatureVerification
-
-