|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxta.security.impl.mac.NullMAC
Fields inherited from interface jxta.security.mac.MAC |
ALG_NULL,
ALG_RC4_MD5,
ALG_RC4_SHA1,
MODE_ENCRYPT,
MODE_VERIFY,
name |
Constructor Summary | |
NullMAC()
// constructor |
Method Summary | |
void |
clearDebug()
turn off debugging |
int |
encrypt(byte[] inbuff,
int offset,
int inLength,
byte[] macBuff,
int macOffset)
Encrypts the digest after updating the last buffer of data (may be the only buffer) |
byte |
getAlgorithm()
return algorithm type value |
java.lang.String |
getAlgorithmName()
// Algorithm name |
int |
getLength()
get the length of the MAC |
void |
init(byte theMode,
jxta.security.cipher.Key theKey,
byte[] privateKey)
initialize the MAC object behaviour |
void |
setDebug()
turn on debugging |
void |
update(byte[] inbuf,
int offset,
int length)
updates data to be encrypted. |
boolean |
verify(byte[] inBuff,
int inOffset,
int inLength,
byte[] macBuff,
int macOffset,
int macLength)
Verifies a MAC for last/only inBuff against the signature in sigBuff. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public NullMAC()
Method Detail |
public java.lang.String getAlgorithmName()
public void setDebug()
public void clearDebug()
public byte getAlgorithm()
public int getLength()
public void init(byte theMode, jxta.security.cipher.Key theKey, byte[] privateKey) throws jxta.security.exceptions.CryptoException
public void update(byte[] inbuf, int offset, int length) throws jxta.security.exceptions.CryptoException
public int encrypt(byte[] inbuff, int offset, int inLength, byte[] macBuff, int macOffset) throws jxta.security.exceptions.CryptoException
public boolean verify(byte[] inBuff, int inOffset, int inLength, byte[] macBuff, int macOffset, int macLength) throws jxta.security.exceptions.CryptoException
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |