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