|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.provider.db.LDAPConfiguration
This class captures LDAP configuration information.
LDAP repositories vary widely on their schema and usage
conventions, so each LDAP repository that the client may wish
to search has a separate LDAPConfiguration
object.
Field Summary |
|
static int |
LDAP_AUTH_NONE
Indicates that no authentication is required when connecting to the LDAP server. |
static int |
LDAP_AUTH_SIMPLE
Indicates that simple authentication is required. |
static int |
LDAP_DEFAULT_AUTH_TYPE
Indicates the default authentication type to use, unless
explicitly specified by |
static String |
LDAP_DEFAULT_BASE_DN_ATTRS
Indicates the default base DN attributes to use, unless
explicitly specified by |
static String |
LDAP_DEFAULT_CERTIFICATE_ATTRS
Indicates the default certificate attributes to use, unless
explicitly specified by |
static String |
LDAP_DEFAULT_CERTIFICATE_REVOCATION_ATTRS
Indicates the default certificate revocation attributes to use,
unless explicitly specified by
|
static boolean |
LDAP_DEFAULT_DISCONNECT_BEFORE_CONNECT
Indicates the default disconnect-before-connect boolean value,
unless explicitly specified by
|
static int |
LDAP_DEFAULT_PORT_NUMBER
Indicates the default port number to use, unless explicitly specified at object construction time. |
static String |
LDAP_DEFAULT_SEARCH_FILTER_ATTRS
Indicates the default search filter attributes to use, unless
explicitly specified by |
static int |
LDAP_DEFAULT_SEARCH_PRIORITY
Indicates the default search priority to use, unless
explicitly specified by |
static int |
LDAP_DEFAULT_SIZE_LIMIT
Indicates the default size limit to use, unless explicitly
specified by |
static int |
LDAP_DEFAULT_TIME_LIMIT
Indicates the default time limit to use, unless explicitly
specified by |
Constructor Summary |
|
LDAPConfiguration(String hostname)
Constructs an |
|
LDAPConfiguration(String descriptiveName,
InetAddress networkAddress,
int portNumber)
Constructs an |
Method Summary |
|
int |
getAuthType()
Returns the authorization type to be used to connect to this LDAP host. |
getBaseDNAttrs()
Returns the base DN attributes string. |
|
getCertificateAttrs()
Returns the certificate attributes string of directory attributes that can have certificates as their values. |
|
getCertificateRevocationAttrs()
Returns the certificate revocation attributes string of directory attributes that have CRLs as their values. |
|
getDescriptiveName()
Returns the descriptive name of the LDAP server associated with this configuration. |
|
boolean |
getDisconnectBeforeConnect()
Returns a |
getNetworkAddress()
Returns the network address of the LDAP host. |
|
int |
getPortNumber()
Returns the port number of the LDAP host. |
getSearchFilterAttrs()
Returns the filter attributes string. |
|
int |
getSearchPriority()
Returns the search priority value that determines the order in which the provider searches multiple LDAP sources. |
getSearchRoot()
Returns the search root string. |
|
int |
getSizeLimit()
Returns the limit on the number of entries to return from the search. |
int |
getTimeLimit()
Returns the limit on the number of seconds to spend on the search. |
void |
setAuthType(int authType)
Sets the authorization type to be used for connection to this LDAP host to authType. |
void |
setBaseDNAttrs(String baseDNAttrs)
Sets the base DN attributes string to baseDNAttrs. |
void |
setCertificateAttrs(String certificateAttrs)
Sets the certificate attributes string to certificateAttrs. |
void |
setCertificateRevocationAttrs(String certificateRevocationAttrs)
Sets the certificate revocation attributes string to certificateRevocationAttrs. |
void |
setDisconnectBeforeConnect(boolean disconnectBeforeConnect)
Sets the disconnect-before-connect value to disconnectBeforeConnect. |
void |
setSearchFilterAttrs(String searchFilterAttrs)
Sets the search filter attributes string to searchFilterAttrs. |
void |
setSearchPriority(int searchPriority)
Sets the search priority value to searchPriority. |
void |
setSearchRoot(String searchRoot)
Sets the search root string to searchRoot. |
void |
setSizeLimit(int sizeLimit)
Sets the the limit on the number of entries to return from the search to sizeLimit. |
void |
setTimeLimit(int timeLimit)
Sets the limit on the number of seconds to spend on the search to timeLimit. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LDAP_AUTH_NONE
public static final int LDAP_AUTH_SIMPLE
public static final int LDAP_DEFAULT_AUTH_TYPE
setAuthType
.public static final int LDAP_DEFAULT_PORT_NUMBER
public static final int LDAP_DEFAULT_SIZE_LIMIT
setSizeLimit
.See Also
setSizeLimit(int)
public static final int LDAP_DEFAULT_TIME_LIMIT
setTimeLimit
.
See Also
setTimeLimit(int)
public static final String LDAP_DEFAULT_BASE_DN_ATTRS
setDNAttributes
.See Also
setBaseDNAttrs(java.lang.String)
public static final String LDAP_DEFAULT_SEARCH_FILTER_ATTRS
setSearchFilterAttributes
.See Also
setSearchFilterAttrs(java.lang.String)
public static final String LDAP_DEFAULT_CERTIFICATE_ATTRS
setCertificateAttrs
.See Also
setCertificateAttrs(java.lang.String)
public static final String LDAP_DEFAULT_CERTIFICATE_REVOCATION_ATTRS
setCertificateRevocationAttrs
.See Also
setCertificateRevocationAttrs(java.lang.String)
public static final int LDAP_DEFAULT_SEARCH_PRIORITY
setSearchPriority
.See Also
setSearchPriority(int)
public static final boolean LDAP_DEFAULT_DISCONNECT_BEFORE_CONNECT
setDisconnectBeforeConnect
.See Also
setDisconnectBeforeConnect(boolean)
Constructor Detail |
public LDAPConfiguration(String descriptiveName, InetAddress networkAddress, int portNumber)
LDAPConfiguration
for an LDAP server
using an identifying name, descriptiveName whose
address and port number is given in networkAddress and
portNumber respectively.Parameters
descriptiveName | A | ||
networkAddress | An | ||
portNumber | An |
public LDAPConfiguration(String hostname) throws UnknownHostException
LDAPConfiguration
for an LDAP server
using hostname with the default port number,
LDAP_DEFAULT_PORT_NUMBER
.Parameters
hostname | A |
Throws
UnknownHostException
- If the conversion
from the host name to a network address failed.Method Detail |
public String getDescriptiveName()
Returns
String
that indicates the descriptive
name of this LDAP server. The application can use this string
to display the server name to the end-user.public InetAddress getNetworkAddress()
Returns
InetAddress
that indicates the network
address of this LDAP server.public int getPortNumber()
Returns
int
that indicates the port number
of this LDAP server.public int getAuthType()
LDAP_AUTH_NONE
(0
) - Indicates that
no authorization is required.
LDAP_AUTH_SIMPLE
(1
) - Indicates that
simple authorization, by a username and password that
authenticate the user, is required.
Returns
int
that indicates the authorization
type to be used to connect to this LDAP server.public void setAuthType(int authType)
LDAP_AUTH_NONE
(0
) - Indicates that
no authorization is required.
LDAP_AUTH_SIMPLE
(1
) - Indicates that
simple authorization, by a username and password that
authenticate the user, is required. Parameters
authType | An |
public int getSizeLimit()
Returns
int
that indicates the limit on the
number of entries in the search results.public void setSizeLimit(int sizeLimit)
0
, there are no limits on
the number of entries returned.Parameters
sizeLimit | An |
public int getTimeLimit()
Returns
int
that indicates the limit on the
number of seconds to spend on the search.public void setTimeLimit(int timeLimit)
0
, there are no limits on
the search time.Parameters
timeLimit | An |
public String getBaseDNAttrs()
o,c
.
Spaces may follow the commas, but are optional.
Returns
String
that indicates the base DN
attributes to be used for LDAP searches.public void setBaseDNAttrs(String baseDNAttrs)
o,c
.
Spaces may follow the commas, but are optional.Parameters
baseDNAttrs | A |
public String getSearchRoot()
Returns
String
that indicates the search root
string to be used for LDAP searches.public void setSearchRoot(String searchRoot)
Parameters
searchRoot | A |
public String getSearchFilterAttrs()
baseDNAttrs
string.
Returns
String
that indicates the search filter
attributes string to be used for LDAP searches.public void setSearchFilterAttrs(String searchFilterAttrs)
baseDNAttrs
string.Parameters
searchFilterAttrs | A |
public String getCertificateAttrs()
userCertificate;binary
,
cACertificate;binary
. In many LDAP schemas, both
of these entry attributes can have a certificate as their
value. This string follows the same syntax as a
baseDNAttrs
string.
Returns
String
that indicates the certificate
attributes string to be used for LDAP searches.public void setCertificateAttrs(String certificateAttrs)
userCertificate;binary
,
cACertificate;binary
. In many LDAP schemas, both
of these directory attributes can have a certificate as their
value. This string
follows the same syntax as a baseDNAttrs
string.Parameters
certificateAttrs | A |
public String getCertificateRevocationAttrs()
authorityRevocationList;binary
,
certificateRevocationList;binary
. In many LDAP
schemas, both of these entry attributes can have a CRL as their
value. This string follows the same syntax as a
baseDNAttrs
string.
Returns
String
that indicates the certificate
revocation attributes string to be used for LDAP searches.public void setCertificateRevocationAttrs(String certificateRevocationAttrs)
authorityRevocationList;binary
,
certificateRevocationList;binary
. In many LDAP
schemas, both of these directory attributes can have a CRL
as their value. This string
follows the same syntax as a baseDNAttrs
string.Parameters
certificateRevocationAttrs | A |
public int getSearchPriority()
0
.
Returns
int
that indicates the search priority
value.public void setSearchPriority(int searchPriority)
0
.Parameters
searchPriority | An |
public boolean getDisconnectBeforeConnect()
boolean
that indicates whether the LDAP source
requires the client to disconnect before performing another
operation. true
.
false
.Returns
boolean
that indicates whether the LDAP
source requires the client to disconnect before performing
another operation.public void setDisconnectBeforeConnect(boolean disconnectBeforeConnect)
true
; if more than one operation can be
performed with the same LDAP
connection, set this value to false
to enhance
performance.Parameters
disconnectBeforeConnect | A |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |