|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.authentication.UserCredentials
public class UserCredentials
Class used to provide credentials for username/password authentication
Field Summary | |
---|---|
static UserCredentials |
NO_CREDENTIALS
|
Constructor Summary | |
---|---|
UserCredentials(String username,
String password)
Creates a new UserCredentials instance from the given username and password. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getObfuscatedPassword()
Returns the password in obfuscated fashion which means everthing except the first and last character replaced by stars. |
String |
getPassword()
Get the password to use for authentication. |
String |
getUsername()
Get the username to use for authentication. |
int |
hashCode()
|
boolean |
hasPassword()
Returns whether the credentials contain a password. |
boolean |
hasUsername()
Returns whether the credentials contain a username. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final UserCredentials NO_CREDENTIALS
Constructor Detail |
---|
public UserCredentials(String username, String password)
UserCredentials
instance from the given username and password. Empty String
s provided
will be treated like no username or password set.
username
- password
- Method Detail |
---|
public String getUsername()
public String getPassword()
public boolean hasUsername()
public boolean hasPassword()
public String getObfuscatedPassword()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |