Package org.keycloak.services.managers
Class ApplianceBootstrap
java.lang.Object
org.keycloak.services.managers.ApplianceBootstrap
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancreateMasterRealmAdminUser(String username, String password, boolean isTemporary, boolean initialUser) Create a temporary admin userbooleancreateMasterRealmAdminUser(String username, String password, String firstName, String lastName, String email, boolean isTemporary, boolean initialUser) Create a temporary admin user with additional profile informationvoidcreateMasterRealmUser(String username, String password, boolean isTemporary) voidcreateMasterRealmUser(String username, String password, String firstName, String lastName, String email, boolean isTemporary) booleancreateTemporaryMasterRealmAdminService(String clientId, String clientSecret) Create a temporary admin service accountbooleanboolean
-
Constructor Details
-
ApplianceBootstrap
-
-
Method Details
-
isNewInstall
public boolean isNewInstall() -
isNoMasterUser
public boolean isNoMasterUser() -
createMasterRealm
public boolean createMasterRealm() -
createMasterRealmAdminUser
public boolean createMasterRealmAdminUser(String username, String password, boolean isTemporary, boolean initialUser) Create a temporary admin user- Parameters:
username- the admin usernamepassword- the admin passwordisTemporary- whether the user is a temporary admininitialUser- if true only create the user if no other users exist- Returns:
- false if the user could not be created
-
createMasterRealmAdminUser
public boolean createMasterRealmAdminUser(String username, String password, String firstName, String lastName, String email, boolean isTemporary, boolean initialUser) Create a temporary admin user with additional profile information- Parameters:
username- the admin usernamepassword- the admin passwordfirstName- the admin user's first name (optional)lastName- the admin user's last name (optional)email- the admin user's email address (optional)isTemporary- whether the user is a temporary admininitialUser- if true only create the user if no other users exist- Returns:
- false if the user could not be created
-
createTemporaryMasterRealmAdminService
Create a temporary admin service account- Parameters:
clientId- the client IDclientSecret- the client secret- Returns:
- false if the service account could not be created
-
createMasterRealmUser
-
createMasterRealmUser
-