Code example for MessageDigest

Methods: clone

0
     
    MessageDigest digest;
     
    @Override 
	public Object clone() throws CloneNotSupportedException {
	return new JavaSHA1((MessageDigest)(digest.clone()));
    } 
     
    protected JavaSHA1(MessageDigest d) {
	digest = d;
    } 
     
    public JavaSHA1() throws Exception { 
	digest = MessageDigest.getInstance("SHA1");
    } 
     
    public void extract(int[] digest, int offset) {
	throw new UnsupportedOperationException();
    } 
     
Experience pair programming with AI  Get Codota for Java