|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.MessageDigest
oracle.security.crypto.core.HMAC
This class implements HMAC [RFC2104] as a subclass of MessageDigest. MD5 and SHA are supported.
Nested Class Summary |
Nested classes inherited from class oracle.security.crypto.core.MessageDigest |
MessageDigest.MDState |
Field Summary |
Fields inherited from class oracle.security.crypto.core.MessageDigest |
algID, digestBits, digestValid |
Constructor Summary | |
HMAC() |
|
HMAC(AlgorithmIdentifier hashAlgID, byte[] key) |
|
HMAC(AlgorithmIdentifier hashAlgID, byte[] key, int keyOff, int keyLen) |
Method Summary | |
java.lang.String |
algName() Returns the algorithm name of this HMAC. |
int |
blockSize() |
java.lang.Object |
clone() Returns a clone of this HMAC object. |
void |
computeCurrent() Completes the hash computation, performing any necessary operations such as padding. |
AlgorithmIdentifier |
getAlgID() |
int |
getDigestLength() Returns the length in bytes of the message digest. |
protected MessageDigest.MDState |
getState() |
void |
init() Resets this HMAC object to its initial state. |
void |
setAlgID(AlgorithmIdentifier algID) |
void |
setKey(byte[] key) |
void |
setKey(byte[] key, int keyOff, int keyLen) |
protected void |
setState(MessageDigest.MDState state) |
void |
update(byte b) Adds the specifed byte to the data being digested. |
void |
update(byte[] input, int off, int len) Adds the specified sequence of bytes to the data being digested. |
Methods inherited from class oracle.security.crypto.core.MessageDigest |
computeDigest, computeDigest, getDigestBits, getInstance, isEqual, isEqual, toString, update, update, update, update, update, update, update, update, update, update, updateASCII |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HMAC()
public HMAC(AlgorithmIdentifier hashAlgID, byte[] key, int keyOff, int keyLen) throws AlgorithmIdentifierException
public HMAC(AlgorithmIdentifier hashAlgID, byte[] key) throws AlgorithmIdentifierException
Method Detail |
public void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
setAlgID
in class MessageDigest
AlgorithmIdentifierException
public AlgorithmIdentifier getAlgID()
getAlgID
in class MessageDigest
public void setKey(byte[] key, int keyOff, int keyLen)
public void setKey(byte[] key)
public void init()
init
in class MessageDigest
public void update(byte b)
update
in class MessageDigest
public void update(byte[] input, int off, int len)
update
in class MessageDigest
input
- the input arrayoff
- start position in the input arraylen
- the number of input array elements to add to the data being digestedpublic void computeCurrent()
MessageDigest.getDigestBits()
.computeCurrent
in class MessageDigest
public java.lang.String algName()
algName
in class MessageDigest
public int blockSize()
blockSize
in class MessageDigest
public int getDigestLength()
MessageDigest
getDigestLength
in class MessageDigest
public java.lang.Object clone()
clone
in class MessageDigest
protected MessageDigest.MDState getState()
getState
in class MessageDigest
protected void setState(MessageDigest.MDState state)
setState
in class MessageDigest
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |