Package org.keycloak.services.managers
Class ApplianceBootstrap
java.lang.Object
org.keycloak.services.managers.ApplianceBootstrap
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
createMasterRealmUser
(String username, String password) boolean
createTemporaryMasterRealmAdminService
(String clientId, String clientSecret) Create a temporary admin service accountboolean
createTemporaryMasterRealmAdminUser
(String username, String password, boolean initialUser) Create a temporary admin userboolean
boolean
-
Constructor Details
-
ApplianceBootstrap
-
-
Method Details
-
isNewInstall
public boolean isNewInstall() -
isNoMasterUser
public boolean isNoMasterUser() -
createMasterRealm
public boolean createMasterRealm() -
createTemporaryMasterRealmAdminUser
public boolean createTemporaryMasterRealmAdminUser(String username, String password, boolean initialUser) Create a temporary admin user- Parameters:
username
-password
-initialUser
- 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
-