Code example for MessageDigest

Methods: clonegetAlgorithm

0
  } 
 
  @Override public Hasher newHasher() { 
    if (supportsClone) {
      try { 
        return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes);
      } catch (CloneNotSupportedException e) {
        // falls through 
      } 
    } 
    return new MessageDigestHasher(getMessageDigest(prototype.getAlgorithm()), bytes);
  } 
 
  private static final class SerializedForm implements Serializable {
    private final String algorithmName;
    private final int bytes;
    private final String toString;
 
    private SerializedForm(String algorithmName, int bytes, String toString) {
      this.algorithmName = algorithmName;
Contextual code suggestions in your IDE  Get Codota for Java