org.apache.commons.vfs2
Class UserAuthenticationData

java.lang.Object
  extended by org.apache.commons.vfs2.UserAuthenticationData

public class UserAuthenticationData
extends java.lang.Object

Container for various authentication data.

Author:
Commons VFS team

Nested Class Summary
static class UserAuthenticationData.Type
          Inner class to represent portions of the user authentication data.
 
Field Summary
static UserAuthenticationData.Type DOMAIN
          The user's domain.
static UserAuthenticationData.Type PASSWORD
          The password.
static UserAuthenticationData.Type USERNAME
          The user name.
 
Constructor Summary
UserAuthenticationData()
           
 
Method Summary
 void cleanup()
          deleted all data stored within this authenticator.
 char[] getData(UserAuthenticationData.Type type)
          get a data from the collection.
 void setData(UserAuthenticationData.Type type, char[] data)
          set a data to this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME

public static final UserAuthenticationData.Type USERNAME
The user name.


PASSWORD

public static final UserAuthenticationData.Type PASSWORD
The password.


DOMAIN

public static final UserAuthenticationData.Type DOMAIN
The user's domain.

Constructor Detail

UserAuthenticationData

public UserAuthenticationData()
Method Detail

setData

public void setData(UserAuthenticationData.Type type,
                    char[] data)
set a data to this collection.

Parameters:
type - The Type to add
data - The data associated with the Type

getData

public char[] getData(UserAuthenticationData.Type type)
get a data from the collection.

Parameters:
type - The Type to retrieve.
Returns:
a character array containing the data associated with the type.

cleanup

public void cleanup()
deleted all data stored within this authenticator.