for(int n = 0; n < count; n ++)
{
Callback c = callbacks[n];
if( c instanceof MapCallback )
{
MapCallback mc = (MapCallback) c;
mc.setInfo(RFC2617Digest.USERNAME, username);
mc.setInfo(RFC2617Digest.CNONCE, cnonce);
mc.setInfo(RFC2617Digest.NONCE, nonce);
mc.setInfo(RFC2617Digest.NONCE_COUNT, nc);
mc.setInfo(RFC2617Digest.QOP, qop);
mc.setInfo(RFC2617Digest.REALM, realm);
mc.setInfo(RFC2617Digest.A2HASH, md5a2);
foundCallback = true;
}
else if( firstUnknown == null )
{
firstUnknown = c;