| java.lang.Object | |
| ↳ | com.microstrategy.utils.crypto.CryptoSessionKey |
A class for the encryption and decryption of session keys.
CryptoHash| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
CryptoSessionKey(String key)
Creates a session key based on the given data.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| final InputStream | createDecryptionInputStream(InputStream in, int size) | ||||||||||
| final String |
decrypt(String iCipherText)
Decrypts the specified string.
| ||||||||||
| final String |
encrypt(String iPlainText, String serverName, int port)
Encrypts the specified string.
| ||||||||||
| final String | encrypt(String iPlainText, EnumCipher cipher) | ||||||||||
| final byte[] | encrypt2Bytes(String iPlainText, EnumCipher cipher) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a session key based on the given data.
| key | string to be used as key. |
|---|
| GeneralSecurityException | |
|---|---|
| IOException |
Decrypts the specified string.
| iCipherText | String to be decrypted. |
|---|
null if the input string is not
valid.
Encrypts the specified string.
| iPlainText | String to be encrypted. |
|---|