public class UsernamePasswordAuthentication extends Object implements Authentication
Constructor and Description |
---|
UsernamePasswordAuthentication(String username,
String password)
Constructor with the minimal data for an authentication
|
UsernamePasswordAuthentication(String username,
String password,
UserMetadata userMetadata)
Constructor with an additonal parameter for user metadata
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Retrive the password
|
UserMetadata |
getUserMetadata()
Retrive the user metadata
|
String |
getUsername()
Retrive the user name
|
public UsernamePasswordAuthentication(String username, String password)
username
- The user namepassword
- The password, can be nullpublic UsernamePasswordAuthentication(String username, String password, UserMetadata userMetadata)
username
- The user namepassword
- The password, can be nulluserMetadata
- The user metadatapublic String getPassword()
public String getUsername()
public UserMetadata getUserMetadata()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.