diff -r 000000000000 -r f464a16d553a samples/messagedigest/src-new-api/org/apidesign/spi/security/Digestor.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/messagedigest/src-new-api/org/apidesign/spi/security/Digestor.java Sat Jun 14 09:52:25 2008 +0200 @@ -0,0 +1,29 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package org.apidesign.spi.security; + +import java.nio.ByteBuffer; + +/** + * + * @author Jaroslav Tulach + */ +// BEGIN: day.end.bridges.Digestor +public abstract class Digestor { + protected abstract byte[] digest(Data data); + protected abstract Data create(String algorithm); + protected abstract void update(Data data, ByteBuffer input); + +// END: day.end.bridges.Digestor + + + static { + // initializes the accessor, so the api package can call protected + // methods from this class + new DigestorAccessorImpl(); + } +} +