Class Utils
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.auth.keycloak.Utils
-
public class Utils extends Object
- Author:
- scf
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUtils.MethodRoleMapperAn interface for classes that map HTTP methods to a user Role.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetKeycloakConfig(CoreSettings coreSettings)Load the keycloak config from the given CoreSettings.static org.keycloak.adapters.KeycloakDeploymentresolveDeployment(CoreSettings coreSettings)Create a new KeycloakDeployment from settings loaded from the given CoreSettings.
-
-
-
Method Detail
-
getKeycloakConfig
public static String getKeycloakConfig(CoreSettings coreSettings)
Load the keycloak config from the given CoreSettings.- Parameters:
coreSettings- the CoreSettings to load the keycloak config from.- Returns:
- the keycloak config.
-
resolveDeployment
public static org.keycloak.adapters.KeycloakDeployment resolveDeployment(CoreSettings coreSettings)
Create a new KeycloakDeployment from settings loaded from the given CoreSettings.- Parameters:
coreSettings- The CoreSettings to create a KeycloakDeployment from.- Returns:
- the new KeycloakDeployment.
-
-