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 TypeMethodDescriptionboolean
boolean
createMasterRealmAdminUser
(String username, String password, boolean isTemporary, boolean initialUser) Create a temporary admin uservoid
createMasterRealmUser
(String username, String password, boolean isTemporary) boolean
createTemporaryMasterRealmAdminService
(String clientId, String clientSecret) Create a temporary admin service accountboolean
boolean
-
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
-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
-