|
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.AgentSHA1MAC
public class AgentSHA1MAC
Agent SHA1 Message Authentication Code generator. Uses a JSAFE Message Digest object to generate a MAC for agent packets.
| Method Summary | |
|---|---|
byte[] |
generateMAC(byte[] macInput,
int macInputLength)
Message Authentication Code generator. |
void |
setHMACKey(byte[] keyData)
Sets the HMAC key. |
boolean |
verifyMAC(byte[] inputToVerify,
int inputLength,
byte[] macToVerify,
int macStartingByte,
int macBytesToCompare)
Message Authentication Code verifier. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setHMACKey(byte[] keyData)
throws AgentCipherException
keyData - The key data to be used in pad-value generation.
AgentCipherException - If the key is too large or for crypto exceptions.
public byte[] generateMAC(byte[] macInput,
int macInputLength)
throws AgentCipherException
macInput - The array to be MACd.macInputLength - The length of the data array to be MACd.
AgentCipherException - If crypto layer exceptions are thrown.
public boolean verifyMAC(byte[] inputToVerify,
int inputLength,
byte[] macToVerify,
int macStartingByte,
int macBytesToCompare)
throws AgentCipherException
inputToVerify - The array to be MACd and verified.inputLength - The length of the data array to be MACd.macToVerify - The array containing the previously generated MAC.macStartingByte - The array offset at which the MAC starts.macBytesToCompare - The number of bytes to be used in the comparison.
AgentCipherException - If parameter sizes don't make sense..
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||