throw new RuntimeException(digest.getAlgorithm() + " doesn't support clone()");
throw new SecurityException(digest.getAlgorithm() + " doesn't support clone()");
	private String calculateDigest(MessageDigest digest, byte[] bytes) {		String result;		try {			digest = (MessageDigest) digest.clone();			result = new String(Base64.encode(digest.digest(bytes)));		} catch (CloneNotSupportedException e1) {			// Won't happen since clone is supported by			// MessageDigest			throw new RuntimeException(digest.getAlgorithm() + " doesn't support clone()"); //$NON-NLS-1$		}		return result;	}