|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.certificate.CertificateServerInfo
This class represents the objects that are currently stored in the SyncCollection and contains a server, type of server and uid for the record.
| Constructor Summary | ||
|
CertificateServerInfo(String server,
int type,
int authType,
String friendlyName,
String baseQuery,
int port)
Creates a new CertificateServerInfo object. |
|
|
CertificateServerInfo(String server,
int type,
int authType,
String friendlyName,
String baseQuery,
int port,
int connectionType)
Creates a new CertificateServerInfo object. |
|
|
CertificateServerInfo(String server,
int type,
String friendlyName)
Creates a new CertificateServerInfo object. |
|
|
CertificateServerInfo(String server,
int type,
String friendlyName,
int uid)
Deprecated. |
|
|
CertificateServerInfo(String server,
int type,
String friendlyName,
String baseQuery,
int port)
Creates a new CertificateServerInfo object. |
|
|
CertificateServerInfo(String server,
int type,
String friendlyName,
String baseQuery,
int port,
int uid)
Deprecated. |
|
| Method Summary | ||
|
CertificateServerInfo |
clone()
This method clones this CertificateServerInfo object exactly. |
|
static void |
display(CertificateServerInfo serverInfo)
Blocks and displays a dialog box containing information about the specified server. |
|
boolean |
equals(Object obj)
Returns true if obj is equal to the
existing object. |
|
int |
getAuthType()
Returns an integer representing the type of authentication that should be used for this connection. |
|
String |
getBaseQuery()
Returns the base query of the server. |
|
int |
getConnectionType()
Returns an integer representing the type of connection that should be used. |
|
String |
getFriendlyName()
Returns the friendly name of the server. |
|
int |
getPort()
Returns the port number of the server. |
|
String |
getServer()
Returns a String containing the URL of the server. |
|
int |
getType()
Returns the type of the server. |
|
int |
getUID()
Returns the unique ID of the server. |
|
int |
hashCode()
Returns a hash code value for the object. |
|
String |
toString()
This method returns a string containing the details in a pretty printed format for display to the user. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CertificateServerInfo(String server, int type, int authType, String friendlyName, String baseQuery, int port)
CertificateServerInfo object.
server - A String representing the name of the server.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.authType - an integer representing the type of authentication to use for this connection. This will most
likely be a value from the LDAPQuery such as LDAPQuery.LDAP_AUTH_SIMPLE or LDAPQuery.LDAP_AUTH_ANONYMOUS.friendlyName - A String representing the friendly name of the server.baseQuery - A String containing the base query of the server.port - An integer representing the port number of the server.uid - A unique ID for the record.IllegalArgumentException - if server, friendlyName or
baseQuery are null.public CertificateServerInfo(String server, int type, int authType, String friendlyName, String baseQuery, int port, int connectionType)
CertificateServerInfo object.
server - A String representing the name of the server.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.authType - an integer representing the type of authentication to use for this connection. This will most
likely be a value from the LDAPQuery such as LDAPQuery.LDAP_AUTH_SIMPLE or LDAPQuery.LDAP_AUTH_ANONYMOUS.connectionType - an integer representing the type of authentication to use for this LDAP connection.
For example, one can set it to be LDAPQuery.LDAP_CONN_DEFAULT or LDAPQuery.LDAP_CONN_SSL_OR_TLS.friendlyName - A String representing the friendly name of the server.baseQuery - A String containing the base query of the server.port - An integer representing the port number of the server.uid - A unique ID for the record.public CertificateServerInfo(String server, int type, String friendlyName)
CertificateServerInfo object. Sets the base query to be
null and the port to be 0.
server - A String representing the URL of the server. It is important to note that the
server parameter must be a proper URL or an exception may be thrown when calling display.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.friendlyName - A String representing the friendly name of the server.public CertificateServerInfo(String server, int type, String friendlyName, int uid)
CertificateServerInfo object. Sets the base query to be
null and the port to be 0.
server - A String representing the URL of the server. It is important to note that the
server parameter must be a proper URL or an exception may be thrown when calling display.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.friendlyName - A String representing the friendly name of the server.uid - A unique ID for the record.public CertificateServerInfo(String server, int type, String friendlyName, String baseQuery, int port)
CertificateServerInfo object.
server - A String representing the URL of the server. It is important to note that the
server parameter must be a proper URL or an exception may be thrown when calling display.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.friendlyName - A String representing the friendly name of the server.baseQuery - A String containing the base query of the server.port - An integer representing the port number of the server.public CertificateServerInfo(String server, int type, String friendlyName, String baseQuery, int port, int uid)
CertificateServerInfo object.
server - A String representing the URL of the server. It is important to note that the
server parameter must be a proper URL or an exception may be thrown when calling display.type - An integer representing the type of the object. The currently defined types
are: CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.friendlyName - A String representing the friendly name of the server.baseQuery - A String containing the base query of the server.port - An integer representing the port number of the server.uid - A unique ID for the record.| Method Detail |
public CertificateServerInfo clone()
public static void display(CertificateServerInfo serverInfo)
serverInfo - The server about which information is to be displayed.public boolean equals(Object obj)
obj is equal to the
existing object.
Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.Boolean.hashCode(),
Hashtablepublic int getAuthType()
for authentication types.public String getBaseQuery()
public int getConnectionType()
for authentication types.public String getFriendlyName()
public int getPort()
public String getServer()
public int getType()
public int getUID()
public int hashCode()
Objectjava.util.Hashtable.
The general contract of hashCode is:
hashCode method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
ObjectObject.equals(java.lang.Object),
Hashtablepublic String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.