Package com.nimbusds.common.ldap
Enum LDAPConnectionException.CauseType
- java.lang.Object
-
- java.lang.Enum<LDAPConnectionException.CauseType>
-
- com.nimbusds.common.ldap.LDAPConnectionException.CauseType
-
- All Implemented Interfaces:
Serializable
,Comparable<LDAPConnectionException.CauseType>
- Enclosing class:
- LDAPConnectionException
public static enum LDAPConnectionException.CauseType extends Enum<LDAPConnectionException.CauseType>
Enumeration of LDAP connection exception cause types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_CERT
Bad server X.509 certificate.CONNECT_TIMEOUT
LDAP connect timeout.KEYSTORE_ERROR
TLS/SSL store error.LDAP_CONNECT_ERROR
General LDAP connection error.LDAP_SERVER_DOWN
LDAP server down or incorrect port.NETWORK_IO_ERROR
Network I/O error.NO_ROUTE_TO_HOST
No route to server host.STARTTLS_ERROR
StartTLS error.TCPIP_ERROR
TCP/IP protocol exception.TLS_SSL_ERROR
TLS/SSL error.UNKNOWN_HOST
Unknown server host name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LDAPConnectionException.CauseType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LDAPConnectionException.CauseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDAP_CONNECT_ERROR
public static final LDAPConnectionException.CauseType LDAP_CONNECT_ERROR
General LDAP connection error.
-
UNKNOWN_HOST
public static final LDAPConnectionException.CauseType UNKNOWN_HOST
Unknown server host name.
-
NO_ROUTE_TO_HOST
public static final LDAPConnectionException.CauseType NO_ROUTE_TO_HOST
No route to server host.
-
LDAP_SERVER_DOWN
public static final LDAPConnectionException.CauseType LDAP_SERVER_DOWN
LDAP server down or incorrect port.
-
TCPIP_ERROR
public static final LDAPConnectionException.CauseType TCPIP_ERROR
TCP/IP protocol exception.
-
KEYSTORE_ERROR
public static final LDAPConnectionException.CauseType KEYSTORE_ERROR
TLS/SSL store error.
-
BAD_CERT
public static final LDAPConnectionException.CauseType BAD_CERT
Bad server X.509 certificate.
-
TLS_SSL_ERROR
public static final LDAPConnectionException.CauseType TLS_SSL_ERROR
TLS/SSL error.
-
STARTTLS_ERROR
public static final LDAPConnectionException.CauseType STARTTLS_ERROR
StartTLS error.
-
CONNECT_TIMEOUT
public static final LDAPConnectionException.CauseType CONNECT_TIMEOUT
LDAP connect timeout.
-
NETWORK_IO_ERROR
public static final LDAPConnectionException.CauseType NETWORK_IO_ERROR
Network I/O error.
-
-
Method Detail
-
values
public static LDAPConnectionException.CauseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LDAPConnectionException.CauseType c : LDAPConnectionException.CauseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LDAPConnectionException.CauseType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-