Code example for MessageDigest

Methods: clone

0
     
    private String algorithm = DEFAULT_ALGORITHM;
    private MessageDigest messageDigest;
     
    public Object getObject() throws Exception {
        return this.messageDigest.clone();
    } 
 
    public Class getObjectType() {
        return MessageDigest.class;
    } 
 
    public boolean isSingleton() { 
        return true; 
    } 
 
    public void setAlgorithm(String algorithm) {
        this.algorithm = algorithm;
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java