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.
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:
JDE 4.0.0
Field Summary
Fields inherited from interface net.rim.device.api.memorycleaner.MemoryCleanerListener
cleanNow(int event) LDAPPasswordCacheRemoves all passwords from the cache hashMemoryCleanerListener.EVENT_MEMORY_CLEANERMemoryCleanerListener.EVENT_DEVICE_LOCKMemoryCleanerListener.EVENT_POWER_DOWNMemoryCleanerListener.EVENT_PROGRAMMATIC_CLEAN
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.
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.
LDAPPasswordCacheRemoves all passwords from the cache hashMemoryCleanerListener.EVENT_MEMORY_CLEANERMemoryCleanerListener.EVENT_DEVICE_LOCKMemoryCleanerListener.EVENT_POWER_DOWNMemoryCleanerListener.EVENT_PROGRAMMATIC_CLEAN
event - Constant describing the specific event (one of the defined
EVENT_* fields in this class).
Returns:
True if any objects were released (hence requiring a GC);
otherwise, false.
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.
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.
A textual description the MemoryCleaner application can show to
the user; if null, it will not be shown in the memory cleaner application
but it will still be called to clean.
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.
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.
Returns the password associated with the server and base query.
If no password exists for that server and base query then null is returned
from this method.
Parameters:
server - the server to retrieve the password for.
baseQuery - the baseQuery to retrieve the password for.
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.
Returns the userDN associated with the server and base query.
If no userDN exists for that server and base query then null is returned
from this method.
Parameters:
server - the server to retrieve the userDN for.
baseQuery - the baseQuery to retrieve the userDN for.
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.
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.
Copyright 1999-2009 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.