public class ECDSASignatureProvider extends Object implements SignatureProvider
Modifier and Type | Class and Description |
---|---|
static class |
ECDSASignatureProvider.ECDSA |
Constructor and Description |
---|
ECDSASignatureProvider(KeycloakSession session,
String algorithm) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
asn1derToConcatenatedRS(byte[] derEncodedSignatureValue,
int signLength) |
static byte[] |
concatenatedRSToASN1DER(byte[] signature,
int signLength) |
SignatureSignerContext |
signer() |
SignatureVerifierContext |
verifier(String kid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ECDSASignatureProvider(KeycloakSession session, String algorithm)
public SignatureSignerContext signer() throws SignatureException
signer
in interface SignatureProvider
SignatureException
public SignatureVerifierContext verifier(String kid) throws VerificationException
verifier
in interface SignatureProvider
VerificationException
public static byte[] concatenatedRSToASN1DER(byte[] signature, int signLength) throws IOException
IOException
public static byte[] asn1derToConcatenatedRS(byte[] derEncodedSignatureValue, int signLength) throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.