gnu.inet.ldap

Class LDAPResult


public class LDAPResult
extends Object

An LDAP result structure.

Field Summary

static int
ADMIN_LIMIT_EXCEEDED
static int
AFFECTS_MULTIPLE_DSAS
static int
ALIAS_DEREFERENCING_PROBLEM
static int
ALIAS_PROBLEM
static int
ATTRIBUTE_OR_VALUE_EXISTS
static int
AUTH_METHOD_NOT_SUPPORTED
static int
BUSY
static int
COMPARE_FALSE
static int
COMPARE_TRUE
static int
CONFIDENTIALITY_REQUIRED
static int
CONSTRAINT_VIOLATION
static int
ENTRY_ALREADY_EXISTS
static int
INAPPROPRIATE_AUTHENTICATION
static int
INAPPROPRIATE_MATCHING
static int
INSUFFICIENT_ACCESS_RIGHTS
static int
INVALID_ATTRIBUTE_SYNTAX
static int
INVALID_CREDENTIALS
static int
INVALID_DN_SYNTAX
static int
LOOP_DETECT
static int
NAMING_VIOLATION
static int
NOT_ALLOWED_ON_NON_LEAF
static int
NOT_ALLOWED_ON_RDN
static int
NO_SUCH_ATTRIBUTE
static int
NO_SUCH_OBJECT
static int
OBJECT_CLASS_MODS_PROHIBITED
static int
OBJECT_CLASS_VIOLATION
static int
OPERATIONS_ERROR
static int
OTHER
static int
PROTOCOL_ERROR
static int
REFERRAL
static int
SASL_BIND_IN_PROGRESS
static int
SIZE_LIMIT_EXCEEDED
static int
STRONG_AUTH_REQUIRED
static int
SUCCESS
static int
TIME_LIMIT_EXCEEDED
static int
UNAVAILABLE
static int
UNAVAILABLE_CRITICAL_EXTENSION
static int
UNDEFINED_ATTRIBUTE_TYPE
static int
UNWILLING_TO_PERFORM
String
errorMessage
An associated error message.
String
matchedDN
The name of the matching entry.
String[]
referrals
A list of LDAP URLs to refer to if the status is REFERRAL.
int
status
The result code associated with this result.

Constructor Summary

LDAPResult(int status, String matchedDN, String errorMessage, String[] referrals)

Method Summary

String
toString()
Debugging.

Field Details

ADMIN_LIMIT_EXCEEDED

public static final int ADMIN_LIMIT_EXCEEDED

Field Value:
11


AFFECTS_MULTIPLE_DSAS

public static final int AFFECTS_MULTIPLE_DSAS

Field Value:
71


ALIAS_DEREFERENCING_PROBLEM

public static final int ALIAS_DEREFERENCING_PROBLEM

Field Value:
36


ALIAS_PROBLEM

public static final int ALIAS_PROBLEM

Field Value:
33


ATTRIBUTE_OR_VALUE_EXISTS

public static final int ATTRIBUTE_OR_VALUE_EXISTS

Field Value:
20


AUTH_METHOD_NOT_SUPPORTED

public static final int AUTH_METHOD_NOT_SUPPORTED

Field Value:
7


BUSY

public static final int BUSY

Field Value:
51


COMPARE_FALSE

public static final int COMPARE_FALSE

Field Value:
5


COMPARE_TRUE

public static final int COMPARE_TRUE

Field Value:
6


CONFIDENTIALITY_REQUIRED

public static final int CONFIDENTIALITY_REQUIRED

Field Value:
13


CONSTRAINT_VIOLATION

public static final int CONSTRAINT_VIOLATION

Field Value:
19


ENTRY_ALREADY_EXISTS

public static final int ENTRY_ALREADY_EXISTS

Field Value:
68


INAPPROPRIATE_AUTHENTICATION

public static final int INAPPROPRIATE_AUTHENTICATION

Field Value:
48


INAPPROPRIATE_MATCHING

public static final int INAPPROPRIATE_MATCHING

Field Value:
18


INSUFFICIENT_ACCESS_RIGHTS

public static final int INSUFFICIENT_ACCESS_RIGHTS

Field Value:
50


INVALID_ATTRIBUTE_SYNTAX

public static final int INVALID_ATTRIBUTE_SYNTAX

Field Value:
21


INVALID_CREDENTIALS

public static final int INVALID_CREDENTIALS

Field Value:
49


INVALID_DN_SYNTAX

public static final int INVALID_DN_SYNTAX

Field Value:
34


LOOP_DETECT

public static final int LOOP_DETECT

Field Value:
54


NAMING_VIOLATION

public static final int NAMING_VIOLATION

Field Value:
64


NOT_ALLOWED_ON_NON_LEAF

public static final int NOT_ALLOWED_ON_NON_LEAF

Field Value:
66


NOT_ALLOWED_ON_RDN

public static final int NOT_ALLOWED_ON_RDN

Field Value:
67


NO_SUCH_ATTRIBUTE

public static final int NO_SUCH_ATTRIBUTE

Field Value:
16


NO_SUCH_OBJECT

public static final int NO_SUCH_OBJECT

Field Value:
32


OBJECT_CLASS_MODS_PROHIBITED

public static final int OBJECT_CLASS_MODS_PROHIBITED

Field Value:
69


OBJECT_CLASS_VIOLATION

public static final int OBJECT_CLASS_VIOLATION

Field Value:
65


OPERATIONS_ERROR

public static final int OPERATIONS_ERROR

Field Value:
1


OTHER

public static final int OTHER

Field Value:
80


PROTOCOL_ERROR

public static final int PROTOCOL_ERROR

Field Value:
2


REFERRAL

public static final int REFERRAL

Field Value:
10


SASL_BIND_IN_PROGRESS

public static final int SASL_BIND_IN_PROGRESS

Field Value:
14


SIZE_LIMIT_EXCEEDED

public static final int SIZE_LIMIT_EXCEEDED

Field Value:
4


STRONG_AUTH_REQUIRED

public static final int STRONG_AUTH_REQUIRED

Field Value:
8


SUCCESS

public static final int SUCCESS

Field Value:
0


TIME_LIMIT_EXCEEDED

public static final int TIME_LIMIT_EXCEEDED

Field Value:
3


UNAVAILABLE

public static final int UNAVAILABLE

Field Value:
52


UNAVAILABLE_CRITICAL_EXTENSION

public static final int UNAVAILABLE_CRITICAL_EXTENSION

Field Value:
12


UNDEFINED_ATTRIBUTE_TYPE

public static final int UNDEFINED_ATTRIBUTE_TYPE

Field Value:
17


UNWILLING_TO_PERFORM

public static final int UNWILLING_TO_PERFORM

Field Value:
53


errorMessage

public final String errorMessage
An associated error message.


matchedDN

public final String matchedDN
The name of the matching entry.


referrals

public final String[] referrals
A list of LDAP URLs to refer to if the status is REFERRAL.


status

public final int status
The result code associated with this result.

Constructor Details

LDAPResult

protected LDAPResult(int status,
                     String matchedDN,
                     String errorMessage,
                     String[] referrals)

Method Details

toString

public String toString()
Debugging.


* LDAPResult.java * Copyright (C) 2004 The Free Software Foundation * * This file is part of GNU inetlib, a library. * * GNU inetlib is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GNU inetlib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Linking this library statically or dynamically with other modules is * making a combined work based on this library. Thus, the terms and * conditions of the GNU General Public License cover the whole * combination. * * As a special exception, the copyright holders of this library give you * permission to link this library with independent modules to produce an * executable, regardless of the license terms of these independent * modules, and to copy and distribute the resulting executable under * terms of your choice, provided that you also meet, for each linked * independent module, the terms and conditions of the license of that * module. An independent module is a module which is not derived from * or based on this library. If you modify this library, you may extend * this exception to your version of the library, but you are not * obliged to do so. If you do not wish to do so, delete this * exception statement from your version.