|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.security.Encryptor
public class Encryptor
Utility class to cipher / uncipher critical information based on public / private key encryption
| Constructor Summary | |
|---|---|
Encryptor(AuthenticationInfo authenticationInfo)
Creates a new Encryptor object |
|
| Method Summary | |
|---|---|
java.lang.String |
decrypt(java.lang.String encryptedMessage)
Decrypt a String using private key located in KeyStore. |
java.lang.String |
encrypt(java.lang.String message)
Encrypt a String using public key located in truststore. |
java.security.KeyPair |
getKeys(java.lang.String storeLocation,
java.lang.String storePassword)
Retrieve public and/or private keys from Keystore/Strustore Uses the first Alias found in the keystore |
java.security.PrivateKey |
getPrivateKey_from_KeyStore()
Get the Public and Private key from a KeyStore |
java.security.PublicKey |
getPublicKey_from_Truststore()
Get the Public key from a TrustStore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Encryptor(AuthenticationInfo authenticationInfo)
throws ServerRuntimeException,
ConfigurationException
Encryptor object
authenticationInfo -
ConfigurationException
ServerRuntimeException| Method Detail |
|---|
public java.security.KeyPair getKeys(java.lang.String storeLocation,
java.lang.String storePassword)
public java.security.PublicKey getPublicKey_from_Truststore()
public java.security.PrivateKey getPrivateKey_from_KeyStore()
public java.lang.String encrypt(java.lang.String message)
message - to be encrypted
public java.lang.String decrypt(java.lang.String encryptedMessage)
throws ConfigurationException
encryptedMessage -
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||