Top Constructors Methods
org.keycloak.jose.jws.crypto

public Class RSAProvider

extends Object
implements SignatureProvider
Class Inheritance
All Implemented Interfaces
org.keycloak.jose.jws.crypto.SignatureProvider
Imports
org.keycloak.common.util.PemUtils, org.keycloak.jose.jws.Algorithm, .JWSInput, java.nio.charset.StandardCharsets, java.security.PrivateKey, .PublicKey, .Signature, java.security.cert.X509Certificate

Author
Bill Burke
Version
$Revision: 1 $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
getJavaAlgorithm(Algorithm alg)

Deprecated as a consequence of Algorithm being deprecated.
public static Signature
getSignature(Algorithm alg)

Deprecated as a consequence of Algorithm being deprecated.
public static byte[]
sign(byte[] data, Algorithm algorithm, PrivateKey privateKey)

Deprecated as a consequence of Algorithm being deprecated.
public static boolean
verify(JWSInput input, PublicKey publicKey)

public boolean
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RSAProviderback to summary
public RSAProvider()

Method Detail

getJavaAlgorithmback to summary
public static String getJavaAlgorithm(Algorithm alg)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

getSignatureback to summary
public static Signature getSignature(Algorithm alg)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

signback to summary
public static byte[] sign(byte[] data, Algorithm algorithm, PrivateKey privateKey)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

verifyback to summary
public static boolean verify(JWSInput input, PublicKey publicKey)
verifyback to summary
public boolean verify(JWSInput input, String key)

Implements org.keycloak.jose.jws.crypto.SignatureProvider.verify.

Annotations
@Override
verifyViaCertificateback to summary
public static boolean verifyViaCertificate(JWSInput input, String cert)