|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.ace.techservice.cipher.AbstractAgentCipherProvider
com.rsa.ace.techservice.cipher.AgentNULLCipher
public class AgentNULLCipher
The NULL Encryption provider. This performs a "NULL" encryption on the data provided. It is passed a key and has a "setKey()" method to adhere to the AgentCipherProvider interface. Any key(s) supplied are ignored. The NULL encryption and decryption are effectively a data copy with a ciphersuite/length header added. The encrypt/decrypt methods here use the base class methods in the manner intended.
| Method Summary | |
|---|---|
int |
decryptPacket(byte[] agentEncryption,
int headerOffset,
byte[] cleartext)
NULL decryption. |
int |
encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
NULL encryption. |
byte |
getCipherID()
This returns the cipher ID of this provider. |
void |
setKey(byte[] key)
Sets the NULL encryption key. |
| Methods inherited from class com.rsa.ace.techservice.cipher.AbstractAgentCipherProvider |
|---|
getMajorVersion, getMaxEncryptedSize, getMinorVersion, setBufferArray, setMajorVersion, setMinorVersion |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.rsa.ace.techservice.cipher.AgentCipherProvider |
|---|
getMaxEncryptedSize |
| Method Detail |
|---|
public void setKey(byte[] key)
throws AgentCipherException
setKey in interface AgentCipherProviderkey - The NULL encryption key, Unused.
AgentCipherException - If the key is null or the length is not valid.
public int decryptPacket(byte[] agentEncryption,
int headerOffset,
byte[] cleartext)
throws AgentCipherException
decryptPacket in interface AgentCipherProvideragentEncryption - The data to be decrypted.headerOffset - The offset at which the agent packet (header) starts.cleartext - The cleartext buffer filled upon return.
AgentCipherException - If the ciphersuite does not match.
public int encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
throws AgentCipherException
encryptPacket in interface AgentCipherProvidercleartext - 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 parameters are invalid.public byte getCipherID()
getCipherID in interface AgentCipherProvider
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||