Skip navigation links

Oracle Application Server HTTPClient Java API Reference
10g Release 3 (10.1.3.1.0)

B32117-01


HTTPClient.ntlm
Class NtlmType2Message

java.lang.Object
  extended byHTTPClient.ntlm.NtlmType2Message


public final class NtlmType2Message
extends java.lang.Object

The NtlmType2Message class contains data from an NTLM type 2 message.


Constructor Summary
NtlmType2Message(NtlmSupportFlags flags, byte[] nonce)
          Constructor

 

Method Summary
 java.lang.String formatType2Message()
          Formats the NTLM Type 2 Message, containing the support flags indicating negotiated options, and the nonce.
 NtlmSupportFlags getFlags()
          Determines the flags.
 byte[] getNonce()
          Determines the nonce.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

NtlmType2Message

public NtlmType2Message(NtlmSupportFlags flags,
                        byte[] nonce)
                 throws java.lang.IllegalArgumentException
Constructor
Parameters:
flags - Support flags
nonce - Challenge nonce
Throws:
java.lang.IllegalArgumentException - nonce is null, nonce length is not 8 bytes, or flags is null.

Method Detail

getFlags

public NtlmSupportFlags getFlags()
Determines the flags.
Returns:
The flags

getNonce

public byte[] getNonce()
Determines the nonce.
Returns:
The nonce

formatType2Message

public java.lang.String formatType2Message()
Formats the NTLM Type 2 Message, containing the support flags indicating negotiated options, and the nonce. This is the NTLM challenge message from the server.

The returned value has already been Base 64 encoded, and may be appended to the WWW-Authenticate or Proxy-Authenticate header after the scheme token.

NOTE: The following elements of the Type 2 message are not supported:

Returns:
The base-64-encoded Type 2 message

Skip navigation links

Oracle Application Server HTTPClient Java API Reference
10g Release 3 (10.1.3.1.0)

B32117-01


Copyright © 2004, 2006, Oracle. All rights reserved.