public class UsernamePasswordAuthentication extends Object implements org.apache.ftpserver.ftplet.Authentication
| Constructor and Description |
|---|
UsernamePasswordAuthentication(String username,
String password)
Constructor with the minimal data for an authentication
|
UsernamePasswordAuthentication(String username,
String password,
org.apache.ftpserver.usermanager.impl.UserMetadata userMetadata)
Constructor with an additonal parameter for user metadata
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword()
Retrive the password
|
org.apache.ftpserver.usermanager.impl.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, org.apache.ftpserver.usermanager.impl.UserMetadata userMetadata)
username - The user namepassword - The password, can be nulluserMetadata - The user metadatapublic String getPassword()
public String getUsername()
public org.apache.ftpserver.usermanager.impl.UserMetadata getUserMetadata()
Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.