Package com.tangosol.net.security
Class UsernameAndPassword
- java.lang.Object
 - 
- com.tangosol.net.security.UsernameAndPassword
 
 
- 
public class UsernameAndPassword extends Object
Security token containing a username and password.- Author:
 - as 2011.12.23
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UsernameAndPassword(String sUsername, char[] acPassword)Construct a new UsernameAndPassword instance.UsernameAndPassword(String sUsername, String sPassword)Construct a new UsernameAndPassword instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]getPassword()Return the password.StringgetUsername()Return the username. 
 - 
 
- 
- 
Constructor Detail
- 
UsernameAndPassword
public UsernameAndPassword(String sUsername, String sPassword)
Construct a new UsernameAndPassword instance.- Parameters:
 sUsername- the usernamesPassword- the password
 
- 
UsernameAndPassword
public UsernameAndPassword(String sUsername, char[] acPassword)
Construct a new UsernameAndPassword instance.- Parameters:
 sUsername- the usernameacPassword- the password
 
 - 
 
- 
Method Detail
- 
getUsername
public String getUsername()
Return the username.- Returns:
 - the username
 
 
- 
getPassword
public char[] getPassword()
Return the password.- Returns:
 - the password
 
 
 - 
 
 -