public class CryptManager extends Object
| Constructor and Description | 
|---|
CryptManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
static KeyPair | 
createNewKeyPair()  | 
static SecretKey | 
createNewSharedKey()  | 
static PublicKey | 
decodePublicKey(byte[] par0ArrayOfByte)
Create a new PublicKey from encoded X.509 data 
 | 
static byte[] | 
decryptData(Key par0Key,
                      byte[] par1ArrayOfByte)
Decrypt byte[] data with RSA private key 
 | 
static InputStream | 
decryptInputStream(SecretKey par0SecretKey,
                                    InputStream par1InputStream)  | 
static SecretKey | 
decryptSharedKey(PrivateKey par0PrivateKey,
                                byte[] par1ArrayOfByte)
Decrypt shared secret AES key using RSA private key 
 | 
static byte[] | 
encryptData(Key par0Key,
                      byte[] par1ArrayOfByte)  | 
static OutputStream | 
encryptOuputStream(SecretKey par0SecretKey,
                                    OutputStream par1OutputStream)  | 
static byte[] | 
getServerIdHash(String par0Str,
                              PublicKey par1PublicKey,
                              SecretKey par2SecretKey)
Compute a serverId hash for use by sendSessionRequest() 
 | 
public CryptManager()
public static SecretKey createNewSharedKey()
public static KeyPair createNewKeyPair()
public static byte[] getServerIdHash(String par0Str, PublicKey par1PublicKey, SecretKey par2SecretKey)
public static PublicKey decodePublicKey(byte[] par0ArrayOfByte)
public static SecretKey decryptSharedKey(PrivateKey par0PrivateKey, byte[] par1ArrayOfByte)
public static byte[] encryptData(Key par0Key, byte[] par1ArrayOfByte)
public static byte[] decryptData(Key par0Key, byte[] par1ArrayOfByte)
public static OutputStream encryptOuputStream(SecretKey par0SecretKey, OutputStream par1OutputStream)
public static InputStream decryptInputStream(SecretKey par0SecretKey, InputStream par1InputStream)