samples/messagedigest/src-new-api/org/apidesign/impl/security/friendapi/DigestImplementation.java
changeset 44 716af5f2ebd1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/messagedigest/src-new-api/org/apidesign/impl/security/friendapi/DigestImplementation.java	Sat Jun 14 09:52:23 2008 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +/*
     1.5 + * To change this template, choose Tools | Templates
     1.6 + * and open the template in the editor.
     1.7 + */
     1.8 +
     1.9 +package org.apidesign.impl.security.friendapi;
    1.10 +
    1.11 +import java.nio.ByteBuffer;
    1.12 +
    1.13 +/**
    1.14 + *
    1.15 + * @author Jaroslav Tulach
    1.16 + */
    1.17 +public abstract class DigestImplementation {
    1.18 +    final String name;
    1.19 +    
    1.20 +    protected DigestImplementation(String algorithm) {
    1.21 +        this.name = algorithm;
    1.22 +    }
    1.23 +    
    1.24 +    public abstract void update(ByteBuffer bb);
    1.25 +    public abstract byte[] digest();
    1.26 +}