All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcp.xml.dsig.internal.MacOutputStream Maven / Gradle / Ivy

The newest version!
/*    */ package org.jcp.xml.dsig.internal;
/*    */ 
/*    */ import java.io.ByteArrayOutputStream;
/*    */ 
/*    */ public class MacOutputStream extends ByteArrayOutputStream
/*    */ {
/* 31 */   private static final byte[] none = "error".getBytes();
/*    */   private final HmacSHA1 mac;
/*    */ 
/*    */   public MacOutputStream(HmacSHA1 mac)
/*    */   {
/* 35 */     this.mac = mac;
/*    */   }
/*    */ 
/*    */   public byte[] toByteArray()
/*    */   {
/* 40 */     return none;
/*    */   }
/*    */ 
/*    */   public void write(byte[] arg0)
/*    */   {
/* 45 */     this.mac.update(arg0);
/*    */   }
/*    */ 
/*    */   public void write(int arg0)
/*    */   {
/* 50 */     this.mac.update((byte)arg0);
/*    */   }
/*    */ 
/*    */   public void write(byte[] arg0, int arg1, int arg2)
/*    */   {
/* 55 */     this.mac.update(arg0, arg1, arg2);
/*    */   }
/*    */ }

/* Location:           E:\HYN\Java\trunk\ref\lib-dep\xmldsig\xmldsig.jar
 * Qualified Name:     org.jcp.xml.dsig.internal.MacOutputStream
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy