@Immutable public class UsernamePasswordCredentials extends Object implements Credentials, Serializable
Credentials
implementation based on a user name / password
pair.Constructor and Description |
---|
UsernamePasswordCredentials(String usernamePassword)
The constructor with the username and password combined string argument.
|
UsernamePasswordCredentials(String userName,
String password)
The constructor with the username and password arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getPassword() |
String |
getUserName() |
Principal |
getUserPrincipal() |
int |
hashCode() |
String |
toString() |
public UsernamePasswordCredentials(String usernamePassword)
usernamePassword
- the username:password formed stringtoString()
public Principal getUserPrincipal()
getUserPrincipal
in interface Credentials
public String getUserName()
public String getPassword()
getPassword
in interface Credentials
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.