Package org.apache.commons.vfs2
Class UserAuthenticationData
- java.lang.Object
-
- org.apache.commons.vfs2.UserAuthenticationData
-
public class UserAuthenticationData extends java.lang.Object
Contains various authentication data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserAuthenticationData.Type
Represents a user authentication item.
-
Field Summary
Fields Modifier and Type Field Description static UserAuthenticationData.Type
DOMAIN
The user's domain.static UserAuthenticationData.Type
PASSWORD
The password.static UserAuthenticationData.Type
USERNAME
The user name.
-
Constructor Summary
Constructors Constructor Description UserAuthenticationData()
Creates a new uninitialized instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Deletes all data stored within this authenticator.char[]
getData(UserAuthenticationData.Type type)
Gets a data from the collection.void
setData(UserAuthenticationData.Type type, char[] data)
Sets a data to this collection.
-
-
-
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()
Creates a new uninitialized instance.
-
-
Method Detail
-
setData
public void setData(UserAuthenticationData.Type type, char[] data)
Sets a data to this collection.- Parameters:
type
- The Type to adddata
- The data associated with the Type
-
getData
public char[] getData(UserAuthenticationData.Type type)
Gets 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()
Deletes all data stored within this authenticator.
-
-