org.apache.jcp.xml.dsig.internal
Class MacOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.apache.jcp.xml.dsig.internal.MacOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class MacOutputStream
extends ByteArrayOutputStream

Derived from Apache sources and changed to use Mac objects instead of org.apache.xml.security.algorithms.SignatureAlgorithm objects.

Author:
raul, Sean Mullan

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
MacOutputStream(Mac mac)
           
 
Method Summary
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MacOutputStream

public MacOutputStream(Mac mac)
Method Detail

write

public void write(int arg0)
Overrides:
write in class ByteArrayOutputStream

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class ByteArrayOutputStream


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.