FileDocCategorySizeDatePackage
MacOutputStream.javaAPI DocAndroid 1.5 API755Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.io

MacOutputStream

public class MacOutputStream extends FilterOutputStream

Fields Summary
protected org.bouncycastle.crypto.Mac
mac
Constructors Summary
public MacOutputStream(OutputStream stream, org.bouncycastle.crypto.Mac mac)

        super(stream);
        this.mac = mac;
    
Methods Summary
public org.bouncycastle.crypto.MacgetMac()

        return mac;
    
public voidwrite(int b)

        mac.update((byte)b);
        out.write(b);
    
public voidwrite(byte[] b, int off, int len)

        mac.update(b, off, len);
        out.write(b, off, len);