public void processChallenge(final String challenge) throws MalformedChallengeException {
  String s=AuthChallengeParser.extractScheme(challenge);
  if (!s.equalsIgnoreCase(getSchemeName())) {
    throw new MalformedChallengeException("Invalid NTLM challenge: " + challenge);
  }
  int i=challenge.indexOf(' ');
  if (i != -1) {
    s=challenge.substring(i,challenge.length());
    this.ntlmchallenge=s.trim();
    this.state=TYPE2_MSG_RECEIVED;
  }
 else {
    this.ntlmchallenge="";
    if (this.state == UNINITIATED) {
      this.state=INITIATED;
    }
 else {
      this.state=FAILED;
    }
  }
}

public void processChallenge ( final String challenge ) throws MalformedChallengeException { String s = AuthChallengeParser . extractScheme ( challenge ) ; if ( ! s . equalsIgnoreCase ( getSchemeName ( ) ) ) { throw new MalformedChallengeException ( "Invalid NTLM challenge: " + challenge ) ; } int i = challenge . indexOf ( ' ' ) ; if ( i != - 1 ) { s = challenge . substring ( i , challenge . length ( ) ) ; this . ntlmchallenge = s . trim ( ) ; this . state = TYPE2_MSG_RECEIVED ; } else { this . ntlmchallenge = "" ; if ( this . state == UNINITIATED ) { this . state = INITIATED ; } else { this . state = FAILED ; } } }
processes the ntlm challenge .
