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 TypeMethodDescriptionint
compareTo
(StaticUserAuthenticator other) boolean
int
hashCode()
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:
compareTo
in interfaceComparable<StaticUserAuthenticator>
- Since:
- 2.0
-
equals
-
hashCode
-
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.
-
toString
-