Package org.apache.commons.vfs.util
Class UserAuthenticatorUtils
java.lang.Object
org.apache.commons.vfs.util.UserAuthenticatorUtils
some helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserAuthenticationData
authenticate
(FileSystemOptions opts, UserAuthenticationData.Type[] authenticatorTypes) if there is a authenticator the authentication will take place, else null will be reutrnedstatic UserAuthenticationData
authenticate
(UserAuthenticator auth, UserAuthenticationData.Type[] authenticatorTypes) if there is a authenticator the authentication will take place, else null will be reutrnedstatic void
cleanup
(UserAuthenticationData authData) cleanup the data in the UerAuthenticationData (null safe)static char[]
getData
(UserAuthenticationData data, UserAuthenticationData.Type type, char[] overwriddenValue) gets data of given type from the UserAuthenticationData or null if there is no data or data of this type availablestatic char[]
converts a string to a char array (null safe)static String
toString
(char[] data) converts the given data to a string (null safe)
-
Constructor Details
-
UserAuthenticatorUtils
public UserAuthenticatorUtils()
-
-
Method Details
-
getData
public static char[] getData(UserAuthenticationData data, UserAuthenticationData.Type type, char[] overwriddenValue) gets data of given type from the UserAuthenticationData or null if there is no data or data of this type available -
authenticate
public static UserAuthenticationData authenticate(FileSystemOptions opts, UserAuthenticationData.Type[] authenticatorTypes) if there is a authenticator the authentication will take place, else null will be reutrned -
authenticate
public static UserAuthenticationData authenticate(UserAuthenticator auth, UserAuthenticationData.Type[] authenticatorTypes) if there is a authenticator the authentication will take place, else null will be reutrned -
toChar
converts a string to a char array (null safe) -
cleanup
cleanup the data in the UerAuthenticationData (null safe) -
toString
converts the given data to a string (null safe)
-