|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.ldap.LDAPPasswordCache
This class maps a server to any username/password used for that server. Then when we are connecting to the same server again we will first try an existing password entry BEFORE prompting the user. Note as well that we will wipe out our cache if the memory cleaner fires.
| Field Summary |
| Fields inherited from interface net.rim.device.api.memorycleaner.MemoryCleanerListener |
EVENT_DEVICE_LOCK, EVENT_IDLE_TIMEOUT, EVENT_IN_HOLSTER, EVENT_IT_POLICY_CHANGED, EVENT_MEMORY_CLEANER, EVENT_OTA_SYNC_TRANSACTION_STOPPED, EVENT_PERSISTENT_CONTENT_CLEAN, EVENT_POWER_DOWN, EVENT_PROGRAMMATIC_CLEAN, EVENT_SYNC_START, EVENT_SYNC_STOPPED, EVENT_TIME_CHANGED |
| Method Summary | ||
|
boolean |
cleanNow(int event)
|
|
void |
cleanPassword(String server,
String baseQuery)
This method cleans out the password for the entry represented by the server and baseQuery passed into this method. |
|
String |
getDescription()
Invoked when the memory cleaner application must display a string about the type of listener being cleaned. |
|
static LDAPPasswordCache |
getInstance()
Returns the instance of the LDAPPasswordCache. |
|
String |
getPassword(String server,
String baseQuery)
Returns the password associated with the server and base query. |
|
String |
getUserDN(String server,
String baseQuery)
Returns the userDN associated with the server and base query. |
|
void |
setPassword(String server,
String baseQuery,
String userDN,
String password)
Sets the username and password associated with the server and baseQuery passed into this method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean cleanNow(int event)
MemoryCleanerListenerevent - Constant describing the specific event (one of the defined
EVENT_* fields in this class).public void cleanPassword(String server, String baseQuery) throws IllegalArgumentException
server - the string representing the server to use for finding the password.baseQuery - the string representing the base query to use for finding the password.IllegalArgumentException - thrown if the server or baseQuery are null.public String getDescription()
MemoryCleanerListener
MemoryCleanerListenerpublic static LDAPPasswordCache getInstance()
public String getPassword(String server, String baseQuery) throws IllegalArgumentException
server - the server to retrieve the password for.baseQuery - the baseQuery to retrieve the password for.IllegalArgumentException - if any of the parameters are null.public String getUserDN(String server, String baseQuery) throws IllegalArgumentException
server - the server to retrieve the userDN for.baseQuery - the baseQuery to retrieve the userDN for.IllegalArgumentException - if any of the parameters are null.public void setPassword(String server, String baseQuery, String userDN, String password) throws IllegalArgumentException
server - the server to associate with the username and password.baseQuery - the baseQuery to associate with the username and password.userDN - the user distinguished name for this server.password - the password for this server.IllegalArgumentException - if any of the parameters are null.
|
|||||||||
| 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.