Package | Description |
---|---|
de.innovationgate.utils.security |
Encrypting and security related stuff
|
Modifier and Type | Method and Description |
---|---|
static RSAKeyPair |
RSAKeyPairUtils.deserialize(java.lang.String encodedKeyPair) |
static RSAKeyPair |
RSAKeyPairUtils.generateRSAKeyPair(java.lang.String passphrase)
generates a new RSA keypair
and sets the passphrase on the private key if passphrase !
|
Modifier and Type | Method and Description |
---|---|
static void |
RSAKeyPairUtils.changePassphrase(RSAKeyPair keyPair,
java.lang.String oldPassphrase,
java.lang.String newPassphrase) |
static byte[] |
RSAKeyPairUtils.getPrivateKey(RSAKeyPair keyPair,
java.lang.String passphrase) |
static byte[] |
RSAKeyPairUtils.getPublicKey(RSAKeyPair keyPair) |
static boolean |
RSAKeyPairUtils.isPassphraseCorrect(RSAKeyPair keyPair,
java.lang.String passphrase) |
static java.lang.String |
RSAKeyPairUtils.serialize(RSAKeyPair keyPair) |
Constructor and Description |
---|
RSAEncrypter(RSAKeyPair keyPair,
java.lang.String passphrase) |