| java.lang.Object com.sun.xml.ws.security.opt.crypto.dsig.internal.HmacSHA1
HmacSHA1 | public class HmacSHA1 (Code) | | An implementation of the HMAC-SHA1 (RFC 2104)
author: Joyce Leung |
Method Summary | |
public void | init(Key key, int length) Initialize with the key
Parameters: key - a Hmac key Parameters: length - output length in byte. | public byte[] | sign() | public void | update(byte[] data) | public void | update(byte data) | public void | update(byte[] data, int offset, int len) | public boolean | verify(byte[] signature) |
init | public void init(Key key, int length) throws InvalidKeyException(Code) | | Initialize with the key
Parameters: key - a Hmac key Parameters: length - output length in byte. length should be > 0 for aspecified length or -1 for unspecified length (length of the signed output) exception: InvalidKeyException - if key is null |
update | public void update(byte[] data)(Code) | | update the engine with data
Parameters: data - information to be signed or verified |
update | public void update(byte data)(Code) | | |
update | public void update(byte[] data, int offset, int len)(Code) | | |
verify | public boolean verify(byte[] signature) throws SignatureException(Code) | | Verifies the signature
Parameters: siganture - the signature to be verified |
|
|