org.apache.ftpserver.usermanager
Class UsernamePasswordAuthentication

java.lang.Object
  extended by org.apache.ftpserver.usermanager.UsernamePasswordAuthentication
All Implemented Interfaces:
Authentication

public class UsernamePasswordAuthentication
extends Object
implements Authentication

Class representing a normal authentication attempt using username and password

Author:
Apache MINA Project

Constructor Summary
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
 
Method Summary
 String getPassword()
          Retrive the password
 UserMetadata getUserMetadata()
          Retrive the user metadata
 String getUsername()
          Retrive the user name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernamePasswordAuthentication

public UsernamePasswordAuthentication(String username,
                                      String password)
Constructor with the minimal data for an authentication

Parameters:
username - The user name
password - The password, can be null

UsernamePasswordAuthentication

public UsernamePasswordAuthentication(String username,
                                      String password,
                                      UserMetadata userMetadata)
Constructor with an additonal parameter for user metadata

Parameters:
username - The user name
password - The password, can be null
userMetadata - The user metadata
Method Detail

getPassword

public String getPassword()
Retrive the password

Returns:
The password

getUsername

public String getUsername()
Retrive the user name

Returns:
The user name

getUserMetadata

public UserMetadata getUserMetadata()
Retrive the user metadata

Returns:
The user metadata


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.