Assert.notNull(digestType, "digestType");
Assert.notNull(encodingType, "encodingType");
Digester basic = new BasicDigester(digestType);
Digester encoded = null;
if (encodingType == EncodingType.HEX) {
encoded = new HexDigester(basic);
} else {
encoded = new Base64Digester(basic);
}
this.digester = new AsStringDigester(encoded);
}