FileDocCategorySizeDatePackage
SignerOutputStream.javaAPI DocJava SE 6 API1932Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.utils

SignerOutputStream

public class SignerOutputStream extends ByteArrayOutputStream
author
raul

Fields Summary
static final byte[]
none
final SignatureAlgorithm
sa
Constructors Summary
public SignerOutputStream(SignatureAlgorithm sa)

param
sa

           
       
        this.sa=sa;       
    
Methods Summary
public byte[]toByteArray()

inheritDoc

        return none;
    
public voidwrite(byte[] arg0)

inheritDoc

        try {
			sa.update(arg0);
		} catch (XMLSignatureException e) {
            throw new RuntimeException(""+e);
		}
    
public voidwrite(int arg0)

inheritDoc

        try {
            sa.update((byte)arg0);
        } catch (XMLSignatureException e) {
            throw new RuntimeException(""+e);
        }
    
public voidwrite(byte[] arg0, int arg1, int arg2)

inheritDoc

        try {
            sa.update(arg0,arg1,arg2);
        } catch (XMLSignatureException e) {
            throw new RuntimeException(""+e);
        }