samples/messagedigest/src-new-api/org/apidesign/impl/security/friendapi/DigestImplementation.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:52:23 +0200
changeset 44 716af5f2ebd1
permissions -rw-r--r--
Switching to freeform project
jtulach@44
     1
/*
jtulach@44
     2
 * To change this template, choose Tools | Templates
jtulach@44
     3
 * and open the template in the editor.
jtulach@44
     4
 */
jtulach@44
     5
jtulach@44
     6
package org.apidesign.impl.security.friendapi;
jtulach@44
     7
jtulach@44
     8
import java.nio.ByteBuffer;
jtulach@44
     9
jtulach@44
    10
/**
jtulach@44
    11
 *
jtulach@44
    12
 * @author Jaroslav Tulach
jtulach@44
    13
 */
jtulach@44
    14
public abstract class DigestImplementation {
jtulach@44
    15
    final String name;
jtulach@44
    16
    
jtulach@44
    17
    protected DigestImplementation(String algorithm) {
jtulach@44
    18
        this.name = algorithm;
jtulach@44
    19
    }
jtulach@44
    20
    
jtulach@44
    21
    public abstract void update(ByteBuffer bb);
jtulach@44
    22
    public abstract byte[] digest();
jtulach@44
    23
}