Class SHA256withECDSASignatureVerification
- java.lang.Object
-
- io.jans.as.server.crypto.signature.SHA256withECDSASignatureVerification
-
- All Implemented Interfaces:
SignatureVerification
@Named public class SHA256withECDSASignatureVerification extends Object implements SignatureVerification
-
-
Constructor Summary
Constructors Constructor Description SHA256withECDSASignatureVerification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkSignature(X509Certificate certificate, 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
public boolean checkSignature(X509Certificate certificate, byte[] signedBytes, byte[] signature) throws io.jans.as.model.exception.SignatureException
- Specified by:
checkSignature
in interfaceSignatureVerification
- Throws:
io.jans.as.model.exception.SignatureException
-
checkSignature
public boolean checkSignature(PublicKey publicKey, byte[] signedBytes, byte[] signature) throws io.jans.as.model.exception.SignatureException
- Specified by:
checkSignature
in interfaceSignatureVerification
- Throws:
io.jans.as.model.exception.SignatureException
-
decodePublicKey
public PublicKey decodePublicKey(byte[] encodedPublicKey) throws io.jans.as.model.exception.SignatureException
- Specified by:
decodePublicKey
in interfaceSignatureVerification
- Throws:
io.jans.as.model.exception.SignatureException
-
hash
public byte[] hash(byte[] bytes)
- Specified by:
hash
in interfaceSignatureVerification
-
hash
public byte[] hash(String str)
- Specified by:
hash
in interfaceSignatureVerification
-
-