public void readWwwAuthenticateHeader(String header){
  if (header != null) {
    mIsDigestAuthentication=header.startsWith(HttpDigestMd5Authentication.HTTP_DIGEST_SCHEMA);
    if (!mIsDigestAuthentication) {
      return;
    }
    String value=getValue(header,"realm");
    mDigest.setRealm(value);
    value=getValue(header,"opaque");
    mDigest.setOpaque(value);
    value=getValue(header,"qop");
    mDigest.setQop(value);
    value=getValue(header,"nonce");
    mDigest.setNextnonce(value);
  }
}

public void readWwwAuthenticateHeader ( String header ) { if ( header != null ) { mIsDigestAuthentication = header . startsWith ( HttpDigestMd5Authentication . HTTP_DIGEST_SCHEMA ) ; if ( ! mIsDigestAuthentication ) { return ; } String value = getValue ( header , "realm" ) ; mDigest . setRealm ( value ) ; value = getValue ( header , "opaque" ) ; mDigest . setOpaque ( value ) ; value = getValue ( header , "qop" ) ; mDigest . setQop ( value ) ; value = getValue ( header , "nonce" ) ; mDigest . setNextnonce ( value ) ; } }
read the www - authenticate header
