|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ca.commons.jndi.ConnectionData
The ConnectionData inner class is used to pass connection data around. Not all fields are guaranteed to be valid values.
| Field Summary | |
java.lang.String |
aliasType
How aliases should be handled in searches ('always'|'never'|'find'|'search'). |
java.lang.String |
baseDN
The base to start browsing from, e.g.' |
java.lang.String |
cacerts
The file containing the trusted server certificates (no keys). |
char[] |
caKeystorePwd
The password to the ca's keystore (may be null for non-client authenticated ssl). |
java.lang.String |
caKeystoreType
The type of ca keystore file; e.g. |
java.lang.String |
clientcerts
The file containing client certificates and private key(s). |
char[] |
clientKeystorePwd
The password to the client's keystore (may be null for non-client authenticated ssl). |
java.lang.String |
clientKeystoreType
The type of client keystore file; e.g. |
char[] |
pwd
The Manager User's password - (is null if user is not manager). |
java.lang.String |
referralType
The jndi ldap referral type: [follow:ignore:throw] (may be null - defaults to 'follow'). |
boolean |
tracing
Whether to set BER tracing on or not. |
java.lang.String |
url
A URL of the form ldap://hostname:portnumber. |
java.lang.String |
userDN
The Manager User's distinguished name (optionally null if not used). |
boolean |
useSSL
Whether to use SSL (either simple or client-authenticated). |
int |
version
The LDAP Version (2 or 3) being used. |
| Constructor Summary | |
ConnectionData()
Empty constructor - data fields are intended to be set directly. |
|
| Method Summary | |
void |
clearPasswords()
This should be used to clear all the passwords saved in this data object when they have been used and are no longer needed... make sure however that no references to the passwords remain to be used by other parts of the program first :-)! |
java.lang.String |
getHost()
Gets the host name from the url string. |
int |
getPort()
Gets the port number from the url string. |
void |
setURL(java.lang.String host,
int port)
Sets the url from the host & port, e.g. |
java.lang.String |
toString()
Returns this data object as a string (doesn't include passwords).. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String baseDN
public int version
public java.lang.String url
public java.lang.String userDN
public char[] pwd
public java.lang.String referralType
public java.lang.String aliasType
public boolean useSSL
public java.lang.String cacerts
public java.lang.String clientcerts
public char[] caKeystorePwd
public char[] clientKeystorePwd
public java.lang.String caKeystoreType
public java.lang.String clientKeystoreType
public boolean tracing
| Constructor Detail |
public ConnectionData()
| Method Detail |
public void clearPasswords()
public void setURL(java.lang.String host,
int port)
host - the host name to connect to, e.g. echidna or 168.10.5.122.port - the host port to connect to, e.g. 19389.public java.lang.String getHost()
public int getPort()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||