COM.claymoresystems.crypto
Class HMACOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--COM.claymoresystems.crypto.HMACOutputStream
- public class HMACOutputStream
- extends java.io.OutputStream
A filter stream that MACs the data
Constructor Summary |
HMACOutputStream(java.lang.String digest,
byte[] key,
java.io.OutputStream out)
Create the output stream with the indicated key |
HMACOutputStream(java.lang.String digest,
java.lang.String key,
java.io.OutputStream out)
Create the output stream with the indicated key |
Method Summary |
protected void |
_HMACOutputStream(java.lang.String digest,
byte[] key,
java.io.OutputStream out)
|
byte[] |
digest()
|
void |
write(byte[] b)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HMACOutputStream
public HMACOutputStream(java.lang.String digest,
byte[] key,
java.io.OutputStream out)
- Create the output stream with the indicated key
- Parameters:
digest
- the digest namekey
- the keyout
- the output stream
HMACOutputStream
public HMACOutputStream(java.lang.String digest,
java.lang.String key,
java.io.OutputStream out)
- Create the output stream with the indicated key
- Parameters:
digest
- the digest namekey
- the keyout
- the output stream
_HMACOutputStream
protected void _HMACOutputStream(java.lang.String digest,
byte[] key,
java.io.OutputStream out)
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
java.io.IOException
digest
public byte[] digest()
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.