Search in sources :

Example 21 with ProviderFactory

use of org.keycloak.provider.ProviderFactory in project keycloak by keycloak.

the class DefaultKeycloakSessionFactory method getAllProviderIds.

<T extends Provider> Set<String> getAllProviderIds(Class<T> clazz) {
    Map<String, ProviderFactory> factoryMap = factoriesMap.get(clazz);
    if (factoryMap == null) {
        return Collections.emptySet();
    }
    Set<String> ids = new HashSet<>();
    for (ProviderFactory f : factoryMap.values()) {
        ids.add(f.getId());
    }
    return ids;
}
Also used : EnvironmentDependentProviderFactory(org.keycloak.provider.EnvironmentDependentProviderFactory) ComponentFactoryProviderFactory(org.keycloak.component.ComponentFactoryProviderFactory) ProviderFactory(org.keycloak.provider.ProviderFactory) HashSet(java.util.HashSet)

Aggregations

ProviderFactory (org.keycloak.provider.ProviderFactory)21 EnvironmentDependentProviderFactory (org.keycloak.provider.EnvironmentDependentProviderFactory)13 Spi (org.keycloak.provider.Spi)10 HashMap (java.util.HashMap)9 Map (java.util.Map)8 ComponentFactoryProviderFactory (org.keycloak.component.ComponentFactoryProviderFactory)8 Provider (org.keycloak.provider.Provider)7 KeycloakDeploymentInfo (org.keycloak.provider.KeycloakDeploymentInfo)6 ProviderManager (org.keycloak.provider.ProviderManager)6 List (java.util.List)4 Logger (org.jboss.logging.Logger)4 Config (org.keycloak.Config)4 MultivaluedHashMap (org.keycloak.common.util.MultivaluedHashMap)4 ComponentFactoryProvider (org.keycloak.component.ComponentFactoryProvider)4 IOException (java.io.IOException)3 InputStream (java.io.InputStream)3 URL (java.net.URL)3 ArrayList (java.util.ArrayList)3 Arrays (java.util.Arrays)3 Collection (java.util.Collection)3