public final class UserAuthenticatorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static UserAuthenticationData |
authenticate(FileSystemOptions opts,
UserAuthenticationData.Type[] authenticatorTypes)
if there is a authenticator the authentication will take place, else null will be reutrned.
|
static UserAuthenticationData |
authenticate(UserAuthenticator auth,
UserAuthenticationData.Type[] authenticatorTypes)
if there is a authenticator the authentication will take place, else null will be reutrned.
|
static void |
cleanup(UserAuthenticationData authData)
cleanup the data in the UerAuthenticationData (null safe).
|
static char[] |
getData(UserAuthenticationData data,
UserAuthenticationData.Type type,
char[] overriddenValue)
gets data of given type from the UserAuthenticationData or null if there is no data or data
of this type available.
|
static char[] |
toChar(String string)
Converts a string to a char array (null safe).
|
static String |
toString(char[] data)
converts the given data to a string (null safe).
|
public static char[] getData(UserAuthenticationData data, UserAuthenticationData.Type type, char[] overriddenValue)
data
- The UserAuthenticationData.type
- The type of the element to retrieve.overriddenValue
- The default value.public static UserAuthenticationData authenticate(FileSystemOptions opts, UserAuthenticationData.Type[] authenticatorTypes)
opts
- The FileSystemOptions.authenticatorTypes
- An array of types describing the data to be retrieved.public static UserAuthenticationData authenticate(UserAuthenticator auth, UserAuthenticationData.Type[] authenticatorTypes)
auth
- The UserAuthenticator.authenticatorTypes
- An array of types describing the data to be retrieved.public static char[] toChar(String string)
string
- The String to convert.public static void cleanup(UserAuthenticationData authData)
authData
- The UserAuthenticationDAta.public static String toString(char[] data)
data
- A character array containing the data to convert to a String.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.