APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.security.ntlm

public final Class NTLMException

extends GeneralSecurityException
Class Inheritance
Imports
java.security.GeneralSecurityException

An NTLM-related Exception

Field Summary

Modifier and TypeField and Description
public static final int
AUTH_FAILED

If authentication fails.

public static final int
BAD_VERSION

If an illegal version string is provided.

private int
public static final int
INVALID_INPUT

If an invalid input is provided.

public static final int
NO_DOMAIN_INFO

If the client cannot get a domain value from the server and the caller has not provided one.

public static final int
PACKET_READ_ERROR

If the incoming packet is invalid.

public static final int
PROTOCOL

Protocol errors.

private static final long
public static final int
USER_UNKNOWN

If the client name is not found on server's user database.

Constructor Summary

AccessConstructor and Description
public
NTLMException(int
the error code, which can be retrieved by the errorCode() method.
errorCode
,
String
the string message, which can be retrieved by the Exception#getMessage() method.
msg
)

Constructs an NTLMException object.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the error code
errorCode
()

Returns the error code associated with this NTLMException.

Field Detail

AUTH_FAILEDback to summary
public static final int AUTH_FAILED

If authentication fails.

BAD_VERSIONback to summary
public static final int BAD_VERSION

If an illegal version string is provided.

errorCodeback to summary
private int errorCode
INVALID_INPUTback to summary
public static final int INVALID_INPUT

If an invalid input is provided.

NO_DOMAIN_INFOback to summary
public static final int NO_DOMAIN_INFO

If the client cannot get a domain value from the server and the caller has not provided one.

PACKET_READ_ERRORback to summary
public static final int PACKET_READ_ERROR

If the incoming packet is invalid.

PROTOCOLback to summary
public static final int PROTOCOL

Protocol errors.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.GeneralSecurityException.serialVersionUID.

Annotations
@Serial
USER_UNKNOWNback to summary
public static final int USER_UNKNOWN

If the client name is not found on server's user database.

Constructor Detail

NTLMExceptionback to summary
public NTLMException(int errorCode, String msg)

Constructs an NTLMException object.

Parameters
errorCode:int

the error code, which can be retrieved by the errorCode() method.

msg:String

the string message, which can be retrieved by the Exception#getMessage() method.

Method Detail

errorCodeback to summary
public int errorCode()

Returns the error code associated with this NTLMException.

Returns:int

the error code