Incorporating Patrick's changes. I am not reall sure about the changes after the war, it is really 'or' it cannot be 'and'. I will change that when I do the reading through the whole chapter.
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package org.apidesign.spi.security;
8 import java.nio.ByteBuffer;
12 * @author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
14 // BEGIN: day.end.bridges.Digestor
15 public abstract class Digestor<Data> {
16 protected abstract byte[] digest(Data data);
17 protected abstract Data create(String algorithm);
18 protected abstract void update(Data data, ByteBuffer input);
20 // FINISH: day.end.bridges.Digestor
24 // initializes the accessor, so the api package can call protected
25 // methods from this class
26 new DigestorAccessorImpl();