COM.claymoresystems.crypto

Class HMACInputStream

public class HMACInputStream extends InputStream

Provides an InputStream filter that MACs the data
Constructor Summary
HMACInputStream(String digest, byte[] key, InputStream in)
Create the input stream with the indicated key
HMACInputStream(String digest, String key, InputStream out)
Create the input stream with the indicated key
Method Summary
byte[]digest()
intread()
intread(byte[] b)
protected void_HMACInputStream(String digest, byte[] key, InputStream in)

Constructor Detail

HMACInputStream

public HMACInputStream(String digest, byte[] key, InputStream in)
Create the input stream with the indicated key

Parameters: digest the digest name key the key in the input stream

HMACInputStream

public HMACInputStream(String digest, String key, InputStream out)
Create the input stream with the indicated key

Parameters: digest the digest name key the key in the input stream

Method Detail

digest

public byte[] digest()

read

public int read()

read

public int read(byte[] b)

_HMACInputStream

protected void _HMACInputStream(String digest, byte[] key, InputStream in)
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.