public class AuthenticationHelper extends Object
Constructor and Description |
---|
AuthenticationHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAuthChangeablePassword(String deviceType,
String overridePattern)
Checks the configuration to see if the authentication password is
designated as changeable
|
static boolean |
isAuthChangeableUsername(String deviceType,
String overridePattern)
Checks the configuration to see if the authentication username is
designated as changeable
|
static String |
randomizeUserAuthenticationPassword(User user)
Randomizes a User's Authentication Password by calling the generate
method to create a BroadWorks compliant randomized password.
|
static String |
randomizeUserAuthenticationUsername(User user)
Randomizes a User's Authentication Username based on the configuration
found in the Alpaca properties file.
|
public static boolean isAuthChangeablePassword(String deviceType, String overridePattern)
deviceType
- The device type to check.public static boolean isAuthChangeableUsername(String deviceType, String overridePattern)
deviceType
- The device type to check.public static String randomizeUserAuthenticationPassword(User user) throws HelperException
user
- The User to randomize the authentication password onHelperException
- Throw if the user is NULL or there is an error response.public static String randomizeUserAuthenticationUsername(User user) throws HelperException
user
- The user to randomize the UsernameHelperException
- Thrown if the user is null or there is an error response.Copyright © 2017 ECG. All rights reserved.