|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.crypto.certificate.CertificateServers
public final class 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 | ||
|---|---|---|
|
void |
addCollectionListener(CollectionListener listener)
|
|
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)
Deprecated. |
|
CertificateServerInfo |
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. |
|
CertificateServerInfo |
addServer(String server,
int type,
String friendlyName,
String baseQuery,
int port,
int authType,
int connectionType)
Adds a server to the list of servers using the specified parameters. |
|
CertificateServerInfo |
addServer(CertificateServerInfo server)
Adds a server to the list of servers. |
|
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. |
|
CertificateServerInfo[] |
getServerInfo(int type)
Returns an array of CertificateServerInfo corresponding to type. |
|
int |
getServerSize(int type)
Returns the number of servers of the specified type. |
|
Enumeration |
getServers(int type)
Get an enumeration of servers. |
|
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. |
|
void |
removeCollectionListener(CollectionListener listener)
|
|
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 void addCollectionListener(CollectionListener listener)
public void removeCollectionListener(CollectionListener listener)
public CertificateServerInfo addServer(CertificateServerInfo server)
server - The server to add to the list.
CertificateServerInfo object containing information about the added server
IllegalArgumentException - if the server is null or invalid or is a duplicate.
public CertificateServerInfo addServer(String server,
int type,
String friendlyName)
LDAP_SERVER
because it requires a non-null base query.
server - A String representing the name of the server.type - The type of server. Any of the CertificateServers.*_SERVER fields except
LDAP_SERVER.friendlyName - The friendly name of the server.
CertificateServerInfo object containing information about the added server.
IllegalArgumentException - if server or friendlyName
is null, or if the type is LDAP_SERVER.
public 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 server
IllegalArgumentException - if an invalid type was specified
public CertificateServerInfo addServer(String server,
int type,
String friendlyName,
String baseQuery,
int port,
int authType)
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.
CertificateServerInfo object containing information about the added server
IllegalArgumentException - if an invalid type was specifiedLDAPQuery
public CertificateServerInfo addServer(String server,
int type,
String friendlyName,
String baseQuery,
int port,
int authType,
int connectionType)
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.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, LDAPQuery.LDAP_CONN_SSL or LDAPQuery.LDAP_CONN_TLS.
CertificateServerInfo object containing information about the added server
IllegalArgumentException - if an invalid type was specified
IllegalArgumentException - if type is invalid or if one of server,
friendlyName, baseQuery, are null- See Also:
LDAPQuery- Category:
- Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
- Since:
- BlackBerry API 4.3.0
public boolean contains(CertificateServerInfo server)
CertificateServerInfo is contained on a server.
server - The CertificateServerInfo object.
IllegalArgumentException - if an invalid type was specified within the server parameter or
if the server is null.
public 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 parameter
or if the server was null.public 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 get
CertificateServerInfo objects.
IllegalArgumentException - if an invalid type was specifiedpublic CertificateServerInfo[] getServerInfo(int type)
type - The class of information to return
IllegalArgumentException - if an invalid type is specified. A valid type is
one of the CertificateServers.*_SERVER fields.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal