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 classUserAuthenticationData.TypeRepresents a user authentication item.
-
Field Summary
Fields Modifier and Type Field Description static UserAuthenticationData.TypeDOMAINThe user's domain.static UserAuthenticationData.TypePASSWORDThe password.static UserAuthenticationData.TypeUSERNAMEThe 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 voidcleanup()Deletes all data stored within this authenticator.char[]getData(UserAuthenticationData.Type type)Gets a data from the collection.voidsetData(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
-
cleanup
public void cleanup()
Deletes all data stored within this authenticator.
-
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.
-
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
-
-