Package org.keycloak.adapters.saml
Class RoleMappingsProviderUtils
- java.lang.Object
-
- org.keycloak.adapters.saml.RoleMappingsProviderUtils
-
public class RoleMappingsProviderUtils extends Object
Utility class that allows for the instantiation and configuration of role mappings providers.- Author:
- Stefan Guilhen
-
-
Constructor Summary
Constructors Constructor Description RoleMappingsProviderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RoleMappingsProviderbootstrapRoleMappingsProvider(SamlDeployment deployment, ResourceLoader loader, SP.RoleMappingsProviderConfig providerConfig)Loads the available implementations ofRoleMappingsProviderand selects the provider that matches the id that was configured inkeycloak-saml.xml.
-
-
-
Method Detail
-
bootstrapRoleMappingsProvider
public static RoleMappingsProvider bootstrapRoleMappingsProvider(SamlDeployment deployment, ResourceLoader loader, SP.RoleMappingsProviderConfig providerConfig)
Loads the available implementations ofRoleMappingsProviderand selects the provider that matches the id that was configured inkeycloak-saml.xml. The selected provider is then initialized with the specifiedSamlDeployment,ResourceLoaderand configuration as specified inkeycloak-saml.xml. If no provider was configured for the SP thennullis returned.- Parameters:
deployment- a reference to theSamlDeploymentthat is being built.loader- a reference to theResourceLoaderthat allows the provider implementation to load additional resources from the SP application WAR.providerConfig- the provider configuration properties as configured inkeycloak-saml.xml. Can contain an empty properties object if no configuration properties were specified for the provider.- Returns:
- the instantiated and initialized
RoleMappingsProviderornullif no provider was configured for the SP.
-
-