Java 类java.security.MessageDigestSpi 实例源码
项目:crypto-gwt
文件:MessageDigestSpiFactory.java
public MessageDigestSpi create(Object constructorParam) {
try {
return Adaptor.adapt(type.newInstance(), MessageDigestSpi.class);
} catch (Exception e) {
throw new IllegalArgumentException("Invalid type: " + type, e);
}
}
项目:crypto-gwt
文件:MessageDigestSpiFactory.java
public MessageDigestSpiFactory(Class<? extends java.security.MessageDigestSpi> type) {
this.type = type;
}