org.apache.commons.vfs.auth
Class StaticUserAuthenticator

java.lang.Object
  extended by org.apache.commons.vfs.auth.StaticUserAuthenticator
All Implemented Interfaces:
UserAuthenticator

public class StaticUserAuthenticator
extends java.lang.Object
implements UserAuthenticator

provides always the same credential data passed in with the constructor.


Field Summary
private  java.lang.String domain
           
private  java.lang.String password
           
private  java.lang.String username
           
 
Constructor Summary
StaticUserAuthenticator(java.lang.String domain, java.lang.String username, java.lang.String password)
           
 
Method Summary
 UserAuthenticationData requestAuthentication(UserAuthenticationData.Type[] types)
          queries the given type from the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

private final java.lang.String username

password

private final java.lang.String password

domain

private final java.lang.String domain
Constructor Detail

StaticUserAuthenticator

public StaticUserAuthenticator(java.lang.String domain,
                               java.lang.String username,
                               java.lang.String password)
Method Detail

requestAuthentication

public UserAuthenticationData requestAuthentication(UserAuthenticationData.Type[] types)
Description copied from interface: UserAuthenticator
queries the given type from the user

Specified by:
requestAuthentication in interface UserAuthenticator