}
key = getA1();
DigestAlgorithmParameter a2 = getA2();
DigestAlgorithmParameterImpl p1 = new DigestAlgorithmParameterImpl(NONCE,
nOnce.getBytes());
com.sun.enterprise.security.auth.digest.api.DigestAlgorithmParameter[] list =
null;
if ("auth-int".equals(qop) || "auth".equals(qop)) {
DigestAlgorithmParameterImpl p2 = new DigestAlgorithmParameterImpl(NONCE_COUNT,
nc.getBytes());
DigestAlgorithmParameterImpl p3 = new DigestAlgorithmParameterImpl(CNONCE,
cnonce.getBytes());
DigestAlgorithmParameterImpl p4 = new DigestAlgorithmParameterImpl(QOP,
qop.getBytes());
list = new DigestAlgorithmParameter[5];
list[0] = p1;
list[1] = p2;
list[2] = p3;
list[3] = p4;
list[4] = (DigestAlgorithmParameter) a2;
} else {
list = new DigestAlgorithmParameter[2];
list[0] = p1;
list[1] = (DigestAlgorithmParameter) a2;
}
secret = new DigestAlgorithmParameterImpl(RESPONSE, response.getBytes());
com.sun.enterprise.security.auth.digest.api.DigestAlgorithmParameter[] data =
new DigestAlgorithmParameter[3];
data[0] = new NestedDigestAlgoParamImpl(DATA, list);
data[1] = secret;