edu.vt.middleware.ldap
public final class LdapConstants extends java.lang.Object
LdapConstants
contains all the constants needed for creating a
Ldap
. See
http://java.sun.com/j2se/1.4.2/docs/guide/jndi/jndi-ldap.html or
http://java.sun.com/j2se/1.4.2/docs/guide/jndi/spec/jndi/properties.html for
more information on JNDI properties.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATION
The value of this property is a string that specifies the authentication
mechanism(s) for the provider to use.
|
static java.lang.String |
AUTHORITATIVE
The value of this property is a string specifying the authoritativeness of
the service requested.
|
static java.lang.String |
BATCH_SIZE
The value of this property is a string of decimal digits that specifies the
batch size of search results returned by the server.
|
static java.lang.String |
BINARY_ATTRIBUTES
The value of this property is a string that specifies additional binary
attributes.
|
static java.lang.String |
CONTEXT_FACTORY
The value of this property is a fully qualified class name of the factory
class which creates the initial context for the LDAP service provider.
|
static java.lang.String |
CREDENTIALS
The value of this property is an object that specifies the credentials of
the principal to be authenticated.
|
static boolean |
DEFAULT_ALLOW_MULTIPLE_DNS
Whether Authenticator should throw an exception if multiple DNs are found
by
Authenticator.getDn(String) . |
static boolean |
DEFAULT_AUTHORITATIVE
Default authoritative value, the value of this constant is false.
|
static java.lang.String |
DEFAULT_AUTHTYPE
Default authentication type, the value of this constant is "simple".
|
static java.lang.String |
DEFAULT_BASE_DN
Default base DN, value of this constant is "".
|
static int |
DEFAULT_BATCH_SIZE
Default batch size, -1 means use provider setting.
|
static java.lang.String |
DEFAULT_CHARSET
Default character set for creating strings.
|
static java.lang.String |
DEFAULT_CONTEXT_FACTORY
Default context factory, value of this constant is "com.sun.jndi.ldap.LdapCtxFactory".
|
static long |
DEFAULT_COUNT_LIMIT
Default count limit, 0 means return all results.
|
static boolean |
DEFAULT_IGNORE_CASE
Default ignore case value, value of this constant is true.
|
static boolean |
DEFAULT_LOG_CREDENTIALS
Whether to log authentication credentials.
|
static int |
DEFAULT_OPERATION_RETRY
Default number of times to retry an operation on failure.
|
static int |
DEFAULT_OPERATION_RETRY_BACKOFF
Default factor to multiply the operation retry wait by.
|
static long |
DEFAULT_OPERATION_RETRY_WAIT
Default amount of time to wait between operation retries.
|
static int |
DEFAULT_PAGED_RESULTS_SIZE
Default paged results size.
|
static java.lang.String |
DEFAULT_PORT
Default ldap port, the value of this constant is "389".
|
static java.lang.String |
DEFAULT_SSL_PORT
Default ldaps port, the value of this constant is "636".
|
static int |
DEFAULT_TIME_LIMIT
Default time limit, 0 means wait indefinitely.
|
static int |
DEFAULT_TIMEOUT
Default timeout, -1 means use provider setting.
|
static boolean |
DEFAULT_TYPES_ONLY
Default type only value, the value of this constant is false.
|
static boolean |
DEFAULT_USE_SSL
Whether to use SSL by default, the value of this constant is false.
|
static java.lang.String |
DEFAULT_USER_FIELD
Default userfield field used by Authenticator.
|
static java.lang.String |
DEREF_ALIASES
The value of this property is a string that specifies how aliases shall be
handled by the provider.
|
static java.lang.String |
DNS_URL
The value of this property is a string that specifies the DNS host and
domain names.
|
static java.lang.String |
LANGUAGE
The value of this property is a string language tag according to RFC 1766.
|
static java.lang.String |
NONE_AUTHTYPE
Value passed to AUTHENTICATION to use none authentication The value of this
constant is "none".
|
static java.lang.String |
PRINCIPAL
The value of this property is a string that specifies the identity of the
principal to be authenticated.
|
static java.lang.String |
PROTOCOL
The value of this property is a string that specifies the security protocol
for the provider to use.
|
static java.lang.String |
PROVIDER_URL
The value of this property is a URL string that specifies the hostname and
port number of the LDAP server, and the root distinguished name of the
naming context to use.
|
static java.lang.String |
PROVIDER_URL_PREFIX
URL prefix used for constructing URLs.
|
static java.lang.String |
PROVIDER_URL_SCHEME
Ldap scheme, the value of this constant is "ldap".
|
static java.lang.String |
PROVIDER_URL_SEPARATOR
URL separator used for constructing URLs.
|
static java.lang.String |
PROVIDER_URL_SSL_SCHEME
Secure ldap scheme, the value of this constant is "ldaps".
|
static java.lang.String |
REFERRAL
The value of this property is a string that specifies how referrals shall
be handled by the provider.
|
static java.lang.String |
SASL_AUTHORIZATION_ID
The value of this property is a string that specifies a SASL authorization
id.
|
static java.lang.String |
SASL_MECHANISM_CRAM_MD5
Value passed to AUTHENTICATION to use CRAM-MD5 authentication.
|
static java.lang.String |
SASL_MECHANISM_DIGEST_MD5
Value passed to AUTHENTICATION to use DIGEST-MD5 authentication.
|
static java.lang.String |
SASL_MECHANISM_EXTERNAL
Value passed to AUTHENTICATION to use SASL authentication.
|
static java.lang.String |
SASL_MECHANISM_GSS_API
Value passed to AUTHENTICATION to use GSS-API authentication.
|
static java.lang.String[] |
SASL_MECHANISMS
List of supported SASL Mechanisms.
|
static java.lang.String |
SASL_REALM
The value of this property is a string that specifies a SASL realm.
|
static java.lang.String |
SIMPLE_AUTHTYPE
Value passed to AUTHENTICATION to use simple authentication.
|
static java.lang.String |
SOCKET_FACTORY
The value of this property is a string identifying the class name of a
socket factory.
|
static java.lang.String |
SSL_PROTOCOL
Value passed to PROTOCOL to use SSL.
|
static java.lang.String |
STRONG_AUTHTYPE
Value passed to AUTHENTICATION to use simple authentication.
|
static java.lang.String |
SUPPORTED_CONTROL
Ldap command which returns a list of supported controls.
|
static java.lang.String |
SUPPORTED_SASL_MECHANISMS
Ldap command which returns a list of supported SASL mechanisms.
|
static java.lang.String |
TIMEOUT
The value of this property is a string that specifies the time in
milliseconds that a connection attempt will abort if the connection cannot
be made.
|
static java.lang.String |
TRACE
The value of this property is a java.io.OutputStream object into which a
hexadecimal dump of the incoming and outgoing LDAP ASN.1 BER packets is
written.
|
static java.lang.String |
TYPES_ONLY
The value of this property is a string that specifies to only return
attribute type names, no values.
|
static java.lang.String |
VERSION
The value of this property is a string that specifies the protocol version
for the provider.
|
static java.lang.String |
VERSION_THREE
Value passed to VERSION to use ldap version 3 controls The value of this
constant is "3".
|
public static final java.lang.String CONTEXT_FACTORY
public static final java.lang.String SOCKET_FACTORY
public static final java.lang.String AUTHORITATIVE
public static final java.lang.String TRACE
public static final java.lang.String AUTHENTICATION
public static final java.lang.String PRINCIPAL
public static final java.lang.String CREDENTIALS
public static final java.lang.String BATCH_SIZE
public static final java.lang.String DNS_URL
public static final java.lang.String LANGUAGE
public static final java.lang.String REFERRAL
public static final java.lang.String DEREF_ALIASES
public static final java.lang.String BINARY_ATTRIBUTES
public static final java.lang.String SASL_AUTHORIZATION_ID
public static final java.lang.String SASL_REALM
public static final java.lang.String TYPES_ONLY
public static final java.lang.String PROTOCOL
public static final java.lang.String VERSION
public static final java.lang.String PROVIDER_URL
public static final java.lang.String TIMEOUT
public static final java.lang.String SSL_PROTOCOL
public static final java.lang.String SIMPLE_AUTHTYPE
public static final java.lang.String STRONG_AUTHTYPE
public static final java.lang.String NONE_AUTHTYPE
public static final java.lang.String VERSION_THREE
public static final java.lang.String PROVIDER_URL_SCHEME
public static final java.lang.String PROVIDER_URL_SSL_SCHEME
public static final java.lang.String PROVIDER_URL_PREFIX
public static final java.lang.String PROVIDER_URL_SEPARATOR
public static final java.lang.String SUPPORTED_SASL_MECHANISMS
public static final java.lang.String SUPPORTED_CONTROL
public static final java.lang.String SASL_MECHANISM_EXTERNAL
public static final java.lang.String SASL_MECHANISM_DIGEST_MD5
public static final java.lang.String SASL_MECHANISM_CRAM_MD5
public static final java.lang.String SASL_MECHANISM_GSS_API
public static final java.lang.String[] SASL_MECHANISMS
public static final java.lang.String DEFAULT_CONTEXT_FACTORY
public static final java.lang.String DEFAULT_BASE_DN
public static final int DEFAULT_TIMEOUT
public static final java.lang.String DEFAULT_AUTHTYPE
public static final int DEFAULT_TIME_LIMIT
public static final long DEFAULT_COUNT_LIMIT
public static final int DEFAULT_PAGED_RESULTS_SIZE
public static final int DEFAULT_BATCH_SIZE
public static final boolean DEFAULT_AUTHORITATIVE
public static final boolean DEFAULT_TYPES_ONLY
public static final boolean DEFAULT_IGNORE_CASE
public static final java.lang.String DEFAULT_PORT
public static final java.lang.String DEFAULT_SSL_PORT
public static final boolean DEFAULT_USE_SSL
public static final boolean DEFAULT_LOG_CREDENTIALS
public static final java.lang.String DEFAULT_USER_FIELD
public static final boolean DEFAULT_ALLOW_MULTIPLE_DNS
Authenticator.getDn(String)
. The
value of this constant is false.public static final java.lang.String DEFAULT_CHARSET
public static final int DEFAULT_OPERATION_RETRY
public static final long DEFAULT_OPERATION_RETRY_WAIT
public static final int DEFAULT_OPERATION_RETRY_BACKOFF
Copyright © 2014. All Rights Reserved.