diff -r 000000000000 -r 716af5f2ebd1 samples/messagedigest/src-new-api/org/apidesign/impl/security/friendapi/DigestImplementation.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/messagedigest/src-new-api/org/apidesign/impl/security/friendapi/DigestImplementation.java Sat Jun 14 09:52:23 2008 +0200 @@ -0,0 +1,23 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package org.apidesign.impl.security.friendapi; + +import java.nio.ByteBuffer; + +/** + * + * @author Jaroslav Tulach + */ +public abstract class DigestImplementation { + final String name; + + protected DigestImplementation(String algorithm) { + this.name = algorithm; + } + + public abstract void update(ByteBuffer bb); + public abstract byte[] digest(); +}