|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AgentCipherProvider
Interface for Agent Cipher providers. These implement a specific cipher suite used by the agent.
| Method Summary | |
|---|---|
int |
decryptPacket(byte[] agentEncryption,
int decryptionOffset,
byte[] cleartext)
Decrypts encrypted data starting at the offset provided. |
int |
encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
This encrypts the bytes passed starting at the offset provided. |
byte |
getCipherID()
This returns the cipher ID of this provider. |
int |
getMaxEncryptedSize(int inputSize)
This function provides the maximium amount of expansion encryption adds to a packet. |
void |
setKey(byte[] keyData)
Sets the key to the byte array provided. |
| Method Detail |
|---|
void setKey(byte[] keyData)
throws AgentCipherException
keyData - The key to be used for encryption & decryption.
AgentCipherException - If the key is null or the length is not valid.
int decryptPacket(byte[] agentEncryption,
int decryptionOffset,
byte[] cleartext)
throws AgentCipherException
agentEncryption - The data to be decrypted.decryptionOffset - The offset at which the encrypted data starts.cleartext - The cleartext buffer filled upon return.
AgentCipherException - If crypto errors occur or parameters are invalid.
int encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
throws AgentCipherException
cleartext - The cleartext buffer to be encrypted.cleartextLength - The length of the cleartext buffer to be encrypted.encryptionOffset - The offset at which the data should be encrypted.agentEncryption - The returned encrypted data.
AgentCipherException - If crypto errors occur or parameters are invalid.byte getCipherID()
int getMaxEncryptedSize(int inputSize)
inputSize - The size of the cleartext input.
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||