COM.claymoresystems.crypto

Class HMACOutputStream


public class HMACOutputStream
extends OutputStream

A filter stream that MACs the data

Constructor Summary

HMACOutputStream(String digest, String key, OutputStream out)
Create the output stream with the indicated key
HMACOutputStream(String digest, byte[] key, OutputStream out)
Create the output stream with the indicated key

Method Summary

protected void
_HMACOutputStream(String digest, byte[] key, OutputStream out)
byte[]
digest()
void
write(byte[] b)
void
write(int b)

Constructor Details

HMACOutputStream

public HMACOutputStream(String digest,
                        String key,
                        OutputStream out)
Create the output stream with the indicated key

Parameters:
digest - the digest name
key - the key
out - the output stream


HMACOutputStream

public HMACOutputStream(String digest,
                        byte[] key,
                        OutputStream out)
Create the output stream with the indicated key

Parameters:
digest - the digest name
key - the key
out - the output stream

Method Details

_HMACOutputStream

protected void _HMACOutputStream(String digest,
                                 byte[] key,
                                 OutputStream out)


digest

public byte[] digest()


write

public void write(byte[] b)
            throws IOException


write

public void write(int b)
            throws IOException


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