this.algorithm=algorithm;  try {
try {
    public void initialize(String realm, String userName, String uri, String nonce,    String password, String method, String cnonce,String algorithm) throws Exception {        if (realm==null) throw new Exception("The realm parameter is null");            this.realm=realm;        if (userName==null) throw new Exception("The userName parameter is null");            this.userName=userName;        if (uri==null) throw new Exception("The uri parameter is null");            this.uri=uri;        if (nonce==null) throw new Exception("The nonce parameter is null");            this.nonce=nonce;        if (password==null) throw new Exception("The password parameter is null");            this.password=password;        if (method==null) throw new Exception("The method parameter is null");            this.method=method;        this.cnonce=cnonce;        if (algorithm==null) throw new Exception("The algorithm parameter is null");            this.algorithm=algorithm;                try {            messageDigest = MessageDigest.getInstance(algorithm);        }        catch ( NoSuchAlgorithmException ex ) {	    System.out.println("DEBUG, DigestClientAuthenticationMethod, initialize(): "+            "ERROR: Digest algorithm does not exist.");            throw new Exception("ERROR: Digest algorithm does not exist.");	}    }