Interface SecureAdminHelper
@Contract
public interface SecureAdminHelper
Definition of some utility behavior that needs to be invoked from config classes in admin/config-api but
implemented elsewhere (in a module with dependencies that we do not want to add to admin/config-api).
- Author:
- Tim Quinn
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn exception indicating a user-correctable error that occurred as a secure admin command executed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the DN for the given DN or alias value.booleanReports whether any admin user exists which has an empty password.voidvalidateInternalUsernameAndPasswordAlias(String username, String passwordAlias) Makes sure that the specified username is an admin user and that the specified password alias exists.
-
Method Details
-
getDN
Returns the DN for the given DN or alias value.- Parameters:
value- the user-specified valueisAlias- whether the value is an alias or the DN itself- Returns:
- the DN
- Throws:
IOExceptionKeyStoreException
-
validateInternalUsernameAndPasswordAlias
Makes sure that the specified username is an admin user and that the specified password alias exists. Note that implementations of this method should not make sure that the username and the password pointed to by the alias actually match a valid admin user in the admin realm. That check is done by the normal authorization logic when the username and the actual password are used.- Parameters:
username- the usernamepasswordAlias- a password alias
-
isAnyAdminUserWithoutPassword
Reports whether any admin user exists which has an empty password.- Returns:
trueif any admin user exists with an empty password;falseotherwise- Throws:
Exception- if an error occurred
-