|
|||||||||
| 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 | ||
|
void |
addCollectionListener(CollectionListener listener)
|
|
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)
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. |
|
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 |
|
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. |
|
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 CRL_SERVER
public static final int DELETED_SERVER
public static final int LDAP_SERVER
public static final int OCSP_SERVER
| Method Detail |
public void addCollectionListener(CollectionListener listener)
public CertificateServerInfo addServer(CertificateServerInfo server)
server - The server to add to the list.CertificateServerInfo object containing information about the added serverIllegalArgumentException - if the server is null or invalid.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 serverIllegalArgumentException - if an invalid type was specifiedpublic 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 serverIllegalArgumentException - if an invalid type was specifiedLDAPQuerypublic 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 serverIllegalArgumentException - if an invalid type was specifiedIllegalArgumentException - if type is invalid or if one of server,
friendlyName, baseQuery, are null- Since:
- JDE 4.3.0
- See Also:
LDAPQuerypublic 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 static CertificateServers getInstance()
CertificateServers object.
CertificateServers object.public CertificateServerInfo[] getServerInfo(int type)
type - The class of information to returnIllegalArgumentException - if an invalid type is specified. A valid type is
one of the CertificateServers.*_SERVER fields.public Enumeration getServers(int type)
type - the type of servers to getCertificateServerInfo objects.IllegalArgumentException - if an invalid type was specifiedpublic 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 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 SyncObject[] getSyncObjects()
SyncObjects.
SyncObjects.public void removeAllElements()
public void removeCollectionListener(CollectionListener listener)
public 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2008 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.