public class KeyLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static PublicKey |
loadKey(String base64der)
Generates a RSA public key by using the base64 encoded DER formatted public key (X509).
|
static PublicKey |
loadKey(String base64urlModulus,
String base64urlPublicExponent)
Generates a RSA public key by using the modulus and public exponent.
|
static PrivateKey |
loadPrivateKey(String base64der)
Generates a RSA private key by using the base64 encoded DER formatted private key (PKCS8 DER
format).
|
static PublicKey |
loadPublicRsaKey(PrivateKey privateKey)
Uses the given private RSA key to create the public key.
|
public static PublicKey loadKey(String base64urlModulus, String base64urlPublicExponent)
base64urlModulus - the base64url encoded modulusbase64urlPublicExponent - the base64url encoded public key exponentpublic static PublicKey loadKey(String base64der)
base64der - the base64 DER encoded public keypublic static PublicKey loadPublicRsaKey(PrivateKey privateKey)
privateKey - privateKeypublic static PrivateKey loadPrivateKey(String base64der)
base64der - the base64 DER PKCS8 encoded private keyCopyright © 2020 Samply Community. All rights reserved.