Package org.apache.commons.vfs2.auth
Class StaticUserAuthenticator
java.lang.Object
org.apache.commons.vfs2.auth.StaticUserAuthenticator
- All Implemented Interfaces:
- Comparable<StaticUserAuthenticator>,- UserAuthenticator
public class StaticUserAuthenticator
extends Object
implements UserAuthenticator, Comparable<StaticUserAuthenticator>
Provides always the same credentials data passed in with the constructor.
- 
Constructor SummaryConstructorsConstructorDescriptionStaticUserAuthenticator(String domain, String userName, String password) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(StaticUserAuthenticator other) booleaninthashCode()Queries the given type from the user.toString()
- 
Constructor Details- 
StaticUserAuthenticatorConstructs a new instance.- Parameters:
- domain- The user domain.
- userName- The user name.
- password- The user password.
 
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<StaticUserAuthenticator>
- Since:
- 2.0
 
- 
equals
- 
hashCode
- 
requestAuthenticationDescription copied from interface:UserAuthenticatorQueries the given type from the user.- Specified by:
- requestAuthenticationin interface- UserAuthenticator
- Parameters:
- types- An array containing the user's credentials
- Returns:
- The UserAuthenticationData.
 
- 
toString
 
-