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 Summary
ConstructorsConstructorDescriptionStaticUserAuthenticator(String domain, String userName, String password) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(StaticUserAuthenticator other) booleaninthashCode()Queries the given type from the user.toString()
-
Constructor Details
-
StaticUserAuthenticator
Constructs a new instance.- Parameters:
domain- The user domain.userName- The user name.password- The user password.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<StaticUserAuthenticator>- Since:
- 2.0
-
equals
-
hashCode
-
requestAuthentication
Description copied from interface:UserAuthenticatorQueries the given type from the user.- Specified by:
requestAuthenticationin interfaceUserAuthenticator- Parameters:
types- An array containing the user's credentials- Returns:
- The UserAuthenticationData.
-
toString
-