COM.claymoresystems.crypto

Class HMACInputStream


public class HMACInputStream
extends InputStream

Provides an InputStream filter that MACs the data

Constructor Summary

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

Method Summary

protected void
_HMACInputStream(String digest, byte[] key, InputStream in)
byte[]
digest()
int
read()
int
read(byte[] b)

Constructor Details

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

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

Method Details

_HMACInputStream

protected void _HMACInputStream(String digest,
                                byte[] key,
                                InputStream in)

digest

public byte[] digest()

read

public int read()
            throws IOException

read

public int read(byte[] b)
            throws IOException

Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.