Package org.keycloak.crypto
Class ECDSASignatureProvider
java.lang.Object
org.keycloak.crypto.ECDSASignatureProvider
- All Implemented Interfaces:
SignatureProvider,Provider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]asn1derToConcatenatedRS(byte[] derEncodedSignatureValue, int signLength) static byte[]concatenatedRSToASN1DER(byte[] signature, int signLength) booleansigner()signer(KeyWrapper key) verifier(KeyWrapper key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.crypto.SignatureProvider
close
-
Constructor Details
-
ECDSASignatureProvider
-
-
Method Details
-
signer
- Specified by:
signerin interfaceSignatureProvider- Throws:
SignatureException
-
signer
- Specified by:
signerin interfaceSignatureProvider- Throws:
SignatureException
-
verifier
- Specified by:
verifierin interfaceSignatureProvider- Throws:
VerificationException
-
verifier
- Specified by:
verifierin interfaceSignatureProvider- Throws:
VerificationException
-
isAsymmetricAlgorithm
public boolean isAsymmetricAlgorithm()- Specified by:
isAsymmetricAlgorithmin interfaceSignatureProvider
-
concatenatedRSToASN1DER
- Throws:
IOException
-
asn1derToConcatenatedRS
public static byte[] asn1derToConcatenatedRS(byte[] derEncodedSignatureValue, int signLength) throws IOException - Throws:
IOException
-