|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.autonomy.encryption.BTEAEncryptionDetails
Defines the encryption details needed to perform BTEA (Block Tiny Encryption Algorithm) encryption. This consists of four keys and a character encoding. When using this class to define ecryption details for ACI communications (@link com.autonomy.aci.AciConnectionDetails.setEncryptionDetails) the key values specified must be the same as those set in the relevent ACI server's configuration using the CommsEncryptionTEAKeys parameter.
Constructor Summary | |
BTEAEncryptionDetails()
Construct default BTEA encryption details (with keys set to 54, 192, 1038, 1026 and encoding to iso-8859-1). |
|
BTEAEncryptionDetails(long nKey1,
long nKey2,
long nKey3,
long nKey4,
java.lang.String sEncoding)
Construct and populate BTEA encryption details with the given encryption/decryption parameters. |
Method Summary | |
java.lang.String |
getEncoding()
Read the character encoding used when BTEA encrypting/decrypting. |
long[] |
getEncryptionKeys()
Read the keys used when BTEA encrypting/decrypting. |
boolean |
isEncrypting()
Whether or not encryption is being used. |
void |
setEncoding(java.lang.String sEncoding)
Set the character encoding used when BTEA encrypting/decrypting. |
void |
setEncrypting(boolean bEncrypting)
Set whether or not encryption should be used. |
void |
setEncryptionKeys(long nKey1,
long nKey2,
long nKey3,
long nKey4)
Set the keys used when BTEA encrypting/decrypting. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BTEAEncryptionDetails()
public BTEAEncryptionDetails(long nKey1, long nKey2, long nKey3, long nKey4, java.lang.String sEncoding)
nKey1
- the first BTEA encryption/decryption key.nKey2
- the second BTEA encryption/decryption key.nKey3
- the third BTEA encryption/decryption key.nKey4
- the fourth BTEA encryption/decryption key.sEncoding
- the character encoding to use when encrypting/decrypting.Method Detail |
public void setEncrypting(boolean bEncrypting)
setEncrypting
in interface EncryptionDetails
bEncrypting
- whether or not encryption should be used.public boolean isEncrypting()
isEncrypting
in interface EncryptionDetails
public void setEncryptionKeys(long nKey1, long nKey2, long nKey3, long nKey4)
nKey1
- the first BTEA encryption/decryption key.nKey2
- the second BTEA encryption/decryption key.nKey3
- the third BTEA encryption/decryption key.nKey4
- the fourth BTEA encryption/decryption key.public long[] getEncryptionKeys()
public void setEncoding(java.lang.String sEncoding)
sEncoding
- the character encoding to use when converting between Strings and bytes during
encryption/decryption process.public java.lang.String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |