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
jtulach@43
     1
/*
jtulach@43
     2
 * To change this template, choose Tools | Templates
jtulach@43
     3
 * and open the template in the editor.
jtulach@43
     4
 */
jtulach@43
     5
jtulach@43
     6
package org.apidesign.impl.security.friendapi;
jtulach@43
     7
jtulach@43
     8
import java.nio.ByteBuffer;
jtulach@43
     9
jtulach@43
    10
/**
jtulach@43
    11
 *
jtulach@43
    12
 * @author Jaroslav Tulach
jtulach@43
    13
 */
jtulach@43
    14
public abstract class DigestImplementation {
jtulach@43
    15
    final String name;
jtulach@43
    16
    
jtulach@43
    17
    protected DigestImplementation(String algorithm) {
jtulach@43
    18
        this.name = algorithm;
jtulach@43
    19
    }
jtulach@43
    20
    
jtulach@43
    21
    public abstract void update(ByteBuffer bb);
jtulach@43
    22
    public abstract byte[] digest();
jtulach@43
    23
}