public MessageDigestSpi create(Object constructorParam) { try { return Adaptor.adapt(type.newInstance(), MessageDigestSpi.class); } catch (Exception e) { throw new IllegalArgumentException("Invalid type: " + type, e); } }
public MessageDigestSpiFactory(Class<? extends java.security.MessageDigestSpi> type) { this.type = type; }