Package com.simplicite.util.tools
Class EncryptionTool.RSAKeyPair
- java.lang.Object
-
- com.simplicite.util.tools.EncryptionTool.RSAKeyPair
-
- Enclosing class:
- EncryptionTool
public static class EncryptionTool.RSAKeyPair extends java.lang.Object
RSA key pair
-
-
Constructor Summary
Constructors Constructor Description RSAKeyPair(java.lang.String privateKey, java.lang.String publicKey)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.interfaces.RSAPrivateKey
getPrivateKey()
Getprivate keyjava.security.interfaces.RSAPublicKey
getPublicKey()
Get public key
-
-
-
Constructor Detail
-
RSAKeyPair
public RSAKeyPair(java.lang.String privateKey, java.lang.String publicKey) throws EncryptionException
Constructor- Parameters:
privateKey
- Private key as base64-encoded PKCS8 stringpublicKey
- Public key as Base64-encoded X509 string- Throws:
EncryptionException
-
-