public class

EsriSecurityException

extends Exception
implements EsriErrorCode
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.esri.core.io.EsriSecurityException

Class Overview

An Exception that describes problems encountered while accessing secure ArcGIS services.

Summary

Constants
int AUTHENTICATION_FAILED Server failed to authenticate the user.
String HTTP_AUTHENTICATION_FAIL_MESSAGE
int MISSING_CLIENT_CERTIFICATE Certificate authentication where client certificate has not been specified
int NTLM_NULL_DOMAIN NTLM authentication with null domain
String TOKEN_AUTHENTICATION_FAIL_MESSAGE
int TOKEN_INVALID User supplied token was invalid.
int TOKEN_SERVICE_NOT_FOUND Token service not found.
int UNTRUSTED_SERVER_CERTIFICATE The server is not trusted.
Public Constructors
EsriSecurityException(int code)
Instantiates an object of EsriSecurityException.
EsriSecurityException(Throwable th)
Instantiates an object of EsriSecurityException.
EsriSecurityException(int code, String msg, Throwable throwable)
Instantiates an object of EsriSecurityException.
EsriSecurityException(int code, String msg)
Instantiates an EsriServiceException with the given error message.
Public Methods
int getCode()
Return the exception code.
String getDescription()
Returns the error description.s
static String getMSG(int code)
Returns a string representation of this object.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object
From interface com.esri.core.io.EsriErrorCode

Constants

public static final int AUTHENTICATION_FAILED

Server failed to authenticate the user.

Constant Value: -10001 (0xffffd8ef)

public static final String HTTP_AUTHENTICATION_FAIL_MESSAGE

Constant Value: "Invalid or missing user credentials"

public static final int MISSING_CLIENT_CERTIFICATE

Certificate authentication where client certificate has not been specified

Constant Value: -10006 (0xffffd8ea)

public static final int NTLM_NULL_DOMAIN

NTLM authentication with null domain

Constant Value: -10005 (0xffffd8eb)

public static final String TOKEN_AUTHENTICATION_FAIL_MESSAGE

Constant Value: "Unauthorized access to a secure service"

public static final int TOKEN_INVALID

User supplied token was invalid.

Constant Value: -10002 (0xffffd8ee)

public static final int TOKEN_SERVICE_NOT_FOUND

Token service not found. Either the token service is either unreachable or DNS name resolution failed.

Constant Value: -10003 (0xffffd8ed)

public static final int UNTRUSTED_SERVER_CERTIFICATE

The server is not trusted.

Constant Value: -10004 (0xffffd8ec)

Public Constructors

public EsriSecurityException (int code)

Instantiates an object of EsriSecurityException.

Parameters
code int: the error code

public EsriSecurityException (Throwable th)

Instantiates an object of EsriSecurityException.

Parameters
th Throwable: the cause

public EsriSecurityException (int code, String msg, Throwable throwable)

Instantiates an object of EsriSecurityException.

Parameters
code int: the code
msg String: the error message
throwable Throwable: the cause

public EsriSecurityException (int code, String msg)

Instantiates an EsriServiceException with the given error message.

Parameters
code int: the code
msg String: the error message

Public Methods

public int getCode ()

Return the exception code.

Returns
int the exception code.

public String getDescription ()

Returns the error description.s

Returns
String the description

See also:

public static String getMSG (int code)

Returns a string representation of this object.

Parameters
code int: the code
Returns
String the MSG