public class UsernamePasswordAuthentication extends Object implements Authentication
| Constructor and Description |
|---|
UsernamePasswordAuthentication(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCredentials()
Returns the password.
|
String |
getPrincipal()
Returns the username.
|
public String getPrincipal()
getPrincipal in interface Authenticationpublic String getCredentials()
getCredentials in interface AuthenticationCopyright © 2018. All rights reserved.