net.rim.device.api.io.messaging
Interface CredentialsCollector


public interface CredentialsCollector

In order to be involved in the authentication process, the application must supply a class implementing the CredentialsCollector interface. There is no guarantee the collector will be called every time authentication is required. The library may preserve and cache credentials temporarily in a secure manner rather than calling the collector every single time.

Since:
BlackBerry API 6.0.0

Method Summary
 UsernamePasswordCredentials getBasicAuthenticationCredentials(String authenticatedEntityID, Hashtable properties)
          Invoked by the platform when it requires credentials to access a Destination.
 



Method Detail

getBasicAuthenticationCredentials

UsernamePasswordCredentials getBasicAuthenticationCredentials(String authenticatedEntityID,
                                                              Hashtable properties)
Invoked by the platform when it requires credentials to access a Destination.

Parameters:
authenticatedEntityID - String identifying the Authenticated entity that requires the credentials.
properties - Additional values provided (authentication scheme specific).
Returns:
UsernamePasswordCredentials to be used for authentication.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.