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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStaticUserAuthenticator(String domain, String userName, String password) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprivate intcompareStringOrNull(String thisString, String otherString) intcompareTo(StaticUserAuthenticator other) booleaninthashCode()Queries the given type from the user.toString()
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
userName
The user name -
password
The password -
domain
The user domain
-
-
Constructor Details
-
StaticUserAuthenticator
Constructs a new instance.- Parameters:
domain- The user domain.userName- The user name.password- The user password.
-
-
Method Details
-
compareStringOrNull
-
compareTo
- Specified by:
compareToin interfaceComparable<StaticUserAuthenticator>- Since:
- 2.0
-
equals
-
hashCode
public int 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
-