|
|||||||||
| 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.CertificateServers
This class is used to store the certificate servers so that we can ensure that they are maintained on the device through resets.
CertificateServerInfo,
CertificateFactory| Field Summary | ||
|
static int |
CRL_SERVER
An integer representing the CRL server type. |
|
static int |
DELETED_SERVER
An integer representing the Deleted servers. |
|
static int |
LDAP_SERVER
An integer representing the LDAP server type. |
|
static int |
OCSP_SERVER
An integer representing the OCSP server type. |
| Method Summary | ||
|
CertificateServerInfo |
addServer(CertificateServerInfo server)
Adds a server to the list of servers. |
|
CertificateServerInfo |
addServer(String server,
int type,
String friendlyName)
Adds a server to the list of servers using the specified parameters. |
|
CertificateServerInfo |
addServer(String server,
int type,
String friendlyName,
String baseQuery,
int port)
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.
|
|
CertificateServerInfo |
elementAt(int type,
int index)
Returns the element at the index specified by the index parameter to the method. |
|
static CertificateServers |
getInstance()
Returns an instance of a CertificateServers object.
|
|
Enumeration |
getServers(int type)
Get an enumeration of servers. |
|
int |
getServerSize(int type)
Returns the number of servers of the specified type. |
|
SyncObject |
getSyncObject(int uid)
Return the SyncObject that has the given UID. |
|
SyncObject[] |
getSyncObjects()
Returns the SyncObjects.
|
|
void |
removeAllElements()
Removes all elements from the list of servers. |
|
boolean |
removeServer(CertificateServerInfo server)
This method removes an element from the appropriate list of servers, given the server to remove. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LDAP_SERVER
public static final int OCSP_SERVER
public static final int CRL_SERVER
public static final int DELETED_SERVER
| Method Detail |
public static CertificateServers getInstance()
CertificateServers object.
CertificateServers object.public CertificateServerInfo addServer(CertificateServerInfo server)
server - The server to add to the list.CertificateServerInfo object containing information about the added serverpublic CertificateServerInfo addServer(String server, int type, String friendlyName)
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.CertificateServerInfo object containing information about the added serverpublic CertificateServerInfo addServer(String server, int type, String friendlyName, String baseQuery, int port)
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.CertificateServerInfo object containing information about the added serverIllegalArgumentException - if an invalid type was specifiedpublic boolean contains(CertificateServerInfo server)
CertificateServerInfo is contained on a server.
server - The CertificateServerInfo object.IllegalArgumentException - if an invalid type was specified within the server parameterpublic CertificateServerInfo elementAt(int type, int index)
type - The type of the server. The currently defined types are:
CertificateServers.LDAP_SERVER, CertificateServers.OCSP_SERVER and CertificateServers.CRL_SERVER.index - The index of the element.CertificateServerInfo object. May be null.IllegalArgumentException - if an invalid type was specifiedpublic boolean removeServer(CertificateServerInfo server)
server - The CertificateServerInfo object.IllegalArgumentException - if an invalid type was specified within the server parameterpublic SyncObject[] getSyncObjects()
SyncObjects.
SyncObjects.public SyncObject getSyncObject(int uid)
SyncObject that has the given UID.uid - The UID of the SyncObject to retrieve.SyncObject with the given UID or null if no
such SyncObject exists.public void removeAllElements()
public int getServerSize(int type)
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.IllegalArgumentException - if an invalid type was specifiedpublic Enumeration getServers(int type)
type - the type of servers to getCertificateServerInfo objects.IllegalArgumentException - if an invalid type was specified
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.