samples/messagedigest/src/org/apidesign/impl/security/friendapi/DigestImplementation.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
     1 /*
     2  * To change this template, choose Tools | Templates
     3  * and open the template in the editor.
     4  */
     5 
     6 package org.apidesign.impl.security.friendapi;
     7 
     8 import java.nio.ByteBuffer;
     9 
    10 /**
    11  *
    12  * @author Jaroslav Tulach
    13  */
    14 public abstract class DigestImplementation {
    15     final String name;
    16     
    17     protected DigestImplementation(String algorithm) {
    18         this.name = algorithm;
    19     }
    20     
    21     public abstract void update(ByteBuffer bb);
    22     public abstract byte[] digest();
    23 }