net.rim.device.api.io.messaging
Class UsernamePasswordCredentials

java.lang.Object
  extended by net.rim.device.api.io.messaging.UsernamePasswordCredentials
All Implemented Interfaces:
Credentials

public final class UsernamePasswordCredentials
extends Object
implements Credentials

Username and password credentials. Contains credentials that can be represented by a username and password only, such as HTTP Basic Authentication.

Since:
BlackBerry API 6.0.0

Constructor Summary
UsernamePasswordCredentials(String username, String password)
          Constructs a new set of credentials with the username and password specified.
 
Method Summary
 String getPassword()
          Returns the password.
 String getUsername()
          Returns the username.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

UsernamePasswordCredentials

public UsernamePasswordCredentials(String username,
                                   String password)
Constructs a new set of credentials with the username and password specified.

Parameters:
username - Username to be used in the credentials.
password - Password to be used int the credentials.
Since:
BlackBerry API 6.0.0


Method Detail

getUsername

public String getUsername()
Returns the username.

Returns:
Username stored in this object.
Since:
BlackBerry API 6.0.0

getPassword

public String getPassword()
Returns the password.

Returns:
Password stored in this object.
Since:
BlackBerry API 6.0.0





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