jtulach@47: /* jtulach@47: * To change this template, choose Tools | Templates jtulach@47: * and open the template in the editor. jtulach@47: */ jtulach@47: jtulach@47: package org.apidesign.spi.security; jtulach@47: jtulach@47: import java.nio.ByteBuffer; jtulach@47: jtulach@47: /** jtulach@47: * jtulach@47: * @author Jaroslav Tulach jtulach@47: */ jtulach@47: // BEGIN: day.end.bridges.Digestor jtulach@47: public abstract class Digestor { jtulach@47: protected abstract byte[] digest(Data data); jtulach@47: protected abstract Data create(String algorithm); jtulach@47: protected abstract void update(Data data, ByteBuffer input); jtulach@47: jtulach@181: // FINISH: day.end.bridges.Digestor jtulach@47: jtulach@47: jtulach@47: static { jtulach@47: // initializes the accessor, so the api package can call protected jtulach@47: // methods from this class jtulach@47: new DigestorAccessorImpl(); jtulach@47: } jtulach@47: } jtulach@47: