Package org.keycloak.jose.jws.crypto
Class RSAProvider
- java.lang.Object
-
- org.keycloak.jose.jws.crypto.RSAProvider
-
- All Implemented Interfaces:
SignatureProvider
public class RSAProvider extends Object implements SignatureProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description RSAProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getJavaAlgorithm(Algorithm alg)
static Signature
getSignature(Algorithm alg)
static byte[]
sign(byte[] data, Algorithm algorithm, PrivateKey privateKey)
boolean
verify(JWSInput input, String key)
static boolean
verify(JWSInput input, PublicKey publicKey)
static boolean
verifyViaCertificate(JWSInput input, String cert)
-
-
-
Method Detail
-
sign
public static byte[] sign(byte[] data, Algorithm algorithm, PrivateKey privateKey)
-
verify
public boolean verify(JWSInput input, String key)
- Specified by:
verify
in interfaceSignatureProvider
-
-