Package org.ldaptive
Enum Class ResultCode
- All Implemented Interfaces:
Serializable
,Comparable<ResultCode>
,Constable
Enum to define ldap result codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionadmin limit exceeded.affected multiple dsas.alias dereferencing problem.alias problem.ambiguous response.assertion failed, See RFC 4528.attribute or value exists.authentication method not supported.auth unknown.authorization denied, See RFC 4370.busy.operation canceled, See RFC 3909.cannot cancel, See RFC 3909.client loop.compare false.compare true.confidentiality required.connect error.constraint violation.control not found.decoding error.e-syncRefreshRequired, See RFC 4533.encoding error.entry already exists.filter error.inappropriate authentication.inappropriate matching.insufficient access rights.invalid attribute syntax.invalid credentials.invalid dn syntax.invalid response.is leaf.ldap not supported.ldap timeout.local error.loop detect.more results to return.naming violation.no memory.no results returned.no such attribute.no such object.no such operation, See RFC 3909.not allowed on nonleaf.not allowed on rdn.object class mods prohibited.object class violation.offset range error, See draft-ietf-ldapext-ldapv3-vlv.operations error.other.param error.partial results.protocol error.referral.referral limit exceeded.sasl bind in progress.server down.size limit exceeded.sort control missing, See draft-ietf-ldapext-ldapv3-vlv.strong authentication required.success.time limit exceeded.tls not supported.too late, See RFC 3909.unavailable.unavailable critical extension.undefined attribute type.unwilling to perform.user cancelled.virtual list view error, See draft-ietf-ldapext-ldapv3-vlv. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
value()
Returns the result code value.static ResultCode
valueOf
(int code) Returns the result code for the supplied integer constant.static ResultCode
Returns the enum constant of this class with the specified name.static ResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
success. -
OPERATIONS_ERROR
operations error. -
PROTOCOL_ERROR
protocol error. -
TIME_LIMIT_EXCEEDED
time limit exceeded. -
SIZE_LIMIT_EXCEEDED
size limit exceeded. -
COMPARE_FALSE
compare false. -
COMPARE_TRUE
compare true. -
AUTH_METHOD_NOT_SUPPORTED
authentication method not supported. -
STRONG_AUTH_REQUIRED
strong authentication required. -
PARTIAL_RESULTS
partial results. -
REFERRAL
referral. -
ADMIN_LIMIT_EXCEEDED
admin limit exceeded. -
UNAVAILABLE_CRITICAL_EXTENSION
unavailable critical extension. -
CONFIDENTIALITY_REQUIRED
confidentiality required. -
SASL_BIND_IN_PROGRESS
sasl bind in progress. -
NO_SUCH_ATTRIBUTE
no such attribute. -
UNDEFINED_ATTRIBUTE_TYPE
undefined attribute type. -
INAPPROPRIATE_MATCHING
inappropriate matching. -
CONSTRAINT_VIOLATION
constraint violation. -
ATTRIBUTE_OR_VALUE_EXISTS
attribute or value exists. -
INVALID_ATTRIBUTE_SYNTAX
invalid attribute syntax. -
NO_SUCH_OBJECT
no such object. -
ALIAS_PROBLEM
alias problem. -
INVALID_DN_SYNTAX
invalid dn syntax. -
IS_LEAF
is leaf. -
ALIAS_DEREFERENCING_PROBLEM
alias dereferencing problem. -
INAPPROPRIATE_AUTHENTICATION
inappropriate authentication. -
INVALID_CREDENTIALS
invalid credentials. -
INSUFFICIENT_ACCESS_RIGHTS
insufficient access rights. -
BUSY
busy. -
UNAVAILABLE
unavailable. -
UNWILLING_TO_PERFORM
unwilling to perform. -
LOOP_DETECT
loop detect. -
SORT_CONTROL_MISSING
sort control missing, See draft-ietf-ldapext-ldapv3-vlv. -
OFFSET_RANGE_ERROR
offset range error, See draft-ietf-ldapext-ldapv3-vlv. -
NAMING_VIOLATION
naming violation. -
OBJECT_CLASS_VIOLATION
object class violation. -
NOT_ALLOWED_ON_NONLEAF
not allowed on nonleaf. -
NOT_ALLOWED_ON_RDN
not allowed on rdn. -
ENTRY_ALREADY_EXISTS
entry already exists. -
OBJECT_CLASS_MODS_PROHIBITED
object class mods prohibited. -
AFFECTS_MULTIPLE_DSAS
affected multiple dsas. -
VIRTUAL_LIST_VIEW_ERROR
virtual list view error, See draft-ietf-ldapext-ldapv3-vlv. -
OTHER
other. -
SERVER_DOWN
server down. -
LOCAL_ERROR
local error. -
ENCODING_ERROR
encoding error. -
DECODING_ERROR
decoding error. -
LDAP_TIMEOUT
ldap timeout. -
AUTH_UNKNOWN
auth unknown. -
FILTER_ERROR
filter error. -
USER_CANCELLED
user cancelled. -
PARAM_ERROR
param error. -
NO_MEMORY
no memory. -
CONNECT_ERROR
connect error. -
LDAP_NOT_SUPPORTED
ldap not supported. -
CONTROL_NOT_FOUND
control not found. -
NO_RESULTS_RETURNED
no results returned. -
MORE_RESULTS_TO_RETURN
more results to return. -
CLIENT_LOOP
client loop. -
REFERRAL_LIMIT_EXCEEDED
referral limit exceeded. -
INVALID_RESPONSE
invalid response. -
AMBIGUOUS_RESPONSE
ambiguous response. -
TLS_NOT_SUPPORTED
tls not supported. -
CANCELED
operation canceled, See RFC 3909. -
NO_SUCH_OPERATION
no such operation, See RFC 3909. -
TOO_LATE
too late, See RFC 3909. -
CANNOT_CANCEL
cannot cancel, See RFC 3909. -
ASSERTION_FAILED
assertion failed, See RFC 4528. -
AUTHORIZATION_DENIED
authorization denied, See RFC 4370. -
E_SYNC_REFRESH_REQUIRED
e-syncRefreshRequired, See RFC 4533.
-
-
Field Details
-
code
private final int codeunderlying error code.
-
-
Constructor Details
-
ResultCode
private ResultCode(int i) Creates a new result code.- Parameters:
i
- error code
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()Returns the result code value.- Returns:
- ldap result code
-
valueOf
Returns the result code for the supplied integer constant.- Parameters:
code
- to find result code for- Returns:
- result code
-