Package org.apache.commons.vfs2
Interface UserAuthenticator
- All Known Implementing Classes:
StaticUserAuthenticator
public interface UserAuthenticator
The user authenticator is used to query credentials from the user. Since a UserAuthenticator is provided with the
FileSystemOptions
to a FileSystem
it should also implement reasonable equals and hashCode functions
if the FileSystem should be shared.-
Method Summary
Modifier and TypeMethodDescriptionQueries the given type from the user.
-
Method Details
-
requestAuthentication
Queries the given type from the user.- Parameters:
types
- An array containing the user's credentials- Returns:
- The UserAuthenticationData.
-