org.apache.commons.vfs.auth
Class StaticUserAuthenticator

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

public class StaticUserAuthenticator
extends java.lang.Object
implements UserAuthenticator, java.lang.Comparable

Provides always the same credentials data passed in with the constructor.

Author:
Commons VFS team

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

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
Parameters:
types - An array containing the user's credentials
Returns:
The UserAuthenticationData.

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)

Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.