com.autonomy.encryption
Class BTEADecrypt
java.lang.Object
com.autonomy.encryption.BTEABase
com.autonomy.encryption.BTEADecrypt
- public class BTEADecrypt
- extends com.autonomy.encryption.BTEABase
Class for decrypting strings using the BTEA scheme.
Method Summary |
static java.lang.String |
binToHex(byte[] enc)
|
static java.lang.String |
decrypt(java.lang.String sToDecrypt,
BTEAEncryptionDetails decryptionDetails)
Decrypt a string from an IDOL server. |
static java.lang.String |
decrypt(java.lang.String sToDecrypt,
long[] alKeys,
java.lang.String sEncoding)
Decrypt a string from an IDOL server. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCRYPT_SUCCESS
public static int ENCRYPT_SUCCESS
ENCRYPT_ERRORBADPARAMETER
public static int ENCRYPT_ERRORBADPARAMETER
ENCRYPT_COMPRESSION_LEVEL
public static int ENCRYPT_COMPRESSION_LEVEL
BTEADecrypt
public BTEADecrypt()
decrypt
public static java.lang.String decrypt(java.lang.String sToDecrypt,
BTEAEncryptionDetails decryptionDetails)
throws java.io.UnsupportedEncodingException,
EncryptionException
- Decrypt a string from an IDOL server.
- Parameters:
sToDecrypt
- the string to decrypt.decryptionDetails
- the details of the encryption scheme to use.
- Returns:
- the decrypted string.
- Throws:
java.io.UnsupportedEncodingException
- if the encoding set in the encryption details is not supported by
the JVM.
EncryptionException
decrypt
public static java.lang.String decrypt(java.lang.String sToDecrypt,
long[] alKeys,
java.lang.String sEncoding)
throws java.io.UnsupportedEncodingException,
EncryptionException
- Decrypt a string from an IDOL server.
- Parameters:
sToDecrypt
- the string to decrypt.alKeys
- an array of length 4 giving the encryption keys to use.sEncoding
- the character encoding to use when decrypting.
- Returns:
- the decrypted string.
- Throws:
java.io.UnsupportedEncodingException
- if the encoding set in the encryption details is not supported by
the JVM.
EncryptionException
binToHex
public static java.lang.String binToHex(byte[] enc)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException