This class is used to store the certificate servers so that we
can ensure that they are maintained on the device through resets.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
addServer(String server,
int type,
String friendlyName,
String baseQuery,
int port,
int authType)
Adds a server to the list of servers using the specified parameters.
boolean
contains(CertificateServerInfo server)
Returns a boolean that determines if the specified
CertificateServerInfo is contained on a server.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
OCSP_SERVER
public static final int OCSP_SERVER
An integer representing the OCSP server type.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CRL_SERVER
public static final int CRL_SERVER
An integer representing the CRL server type.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
DELETED_SERVER
public static final int DELETED_SERVER
An integer representing the Deleted servers.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Returns an instance of a CertificateServers object.
Returns:
A CertificateServers object.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Adds a server to the list of servers using the specified parameters.
This method sets the baseQuery to null, port to 0 and automatically
generates the unique identifier ( UID ).
Parameters:
server - A String representing the name of the server, must be non null.
type - The type of server. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.
friendlyName - The friendly name of the server, must be non null.
Returns:
A CertificateServerInfo object containing information about the added server
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Adds a server to the list of servers using the specified parameters.
This method automatically generates the unique identifier ( UID ).
Parameters:
server - A String representing the name of the server, must be non null.
type - The type of server. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.
friendlyName - The friendly name of the server, must be non null.
baseQuery - A String containing the base query of the server, must be non null
if the type is CertificateServer.LDAP_SERVER.
port - The port number of the server.
Returns:
A CertificateServerInfo object containing information about the added server
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Adds a server to the list of servers using the specified parameters.
This method automatically generates the unique identifier ( UID ).
Parameters:
server - A String representing the name of the server, must be non null.
type - The type of server. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.
friendlyName - The friendly name of the server, must be non null.
baseQuery - A String containing the base query of the server, must be non null
if the type is CertificateServer.LDAP_SERVER.
port - The port number of the server.
authType - an integer representing the type of authentication to use for this LDAP connection.
For example, one can set it to be LDAPQuery.LDAP_AUTH_ANONYMOUS or LDAPQuery.LDAP_AUTH_SIMPLE. Simple
authentication will prompt for a username and password.
Returns:
A CertificateServerInfo object containing information about the added server
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Returns a boolean that determines if the specified
CertificateServerInfo is contained on a server.
Parameters:
server - The CertificateServerInfo object.
Returns:
A boolean that returns true if the server is found.
Throws:
IllegalArgumentException - if an invalid type was specified within the server parameter or
if the server is null.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Returns the element at the index specified by the index parameter
to the method.
Parameters:
type - The type of the server. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
This method removes an element from the appropriate list of servers, given
the server to remove.
Parameters:
server - The CertificateServerInfo object.
Returns:
A boolean that returns true if the server is removed.
Throws:
IllegalArgumentException - if an invalid type was specified within the server parameter
or if the server was null.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
The SyncObject with the given UID or null if no
such SyncObject exists.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
removeAllElements
public void removeAllElements()
Removes all elements from the list of servers.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
getServerSize
public int getServerSize(int type)
Returns the number of servers of the specified type.
Parameters:
type - the type of server for which to return the size. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.
Returns:
An integer that represents the number of servers of the specified type.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Copyright 1999-2004 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.