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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
compareStringOrNull
(String thisString, String otherString) int
compareTo
(StaticUserAuthenticator other) boolean
int
hashCode()
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's domain
-
-
Constructor Details
-
StaticUserAuthenticator
-
-
Method Details
-
requestAuthentication
Description copied from interface:UserAuthenticator
Queries the given type from the user.- Specified by:
requestAuthentication
in interfaceUserAuthenticator
- Parameters:
types
- An array containing the user's credentials- Returns:
- The UserAuthenticationData.
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<StaticUserAuthenticator>
- Since:
- 2.0
-
compareStringOrNull
-
toString
-