Package org.keycloak.credential
Interface CredentialProviderFactory<T extends CredentialProvider>
- 
- All Superinterfaces:
- ProviderFactory<CredentialProvider>
 - All Known Implementing Classes:
- OTPCredentialProviderFactory,- PasswordCredentialProviderFactory,- RecoveryAuthnCodesCredentialProviderFactory,- WebAuthnCredentialProviderFactory,- WebAuthnPasswordlessCredentialProviderFactory
 
 public interface CredentialProviderFactory<T extends CredentialProvider> extends ProviderFactory<CredentialProvider> - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()This is called when the server shuts down.StringgetId()This is the name of the provider and will be showed in the admin console as an option.default voidinit(Config.Scope config)Only called once when the factory is first created.default voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from interface org.keycloak.provider.ProviderFactorycreate, getConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
getIdString getId() This is the name of the provider and will be showed in the admin console as an option.- Specified by:
- getIdin interface- ProviderFactory<T extends CredentialProvider>
- Returns:
 
 - 
initdefault void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<T extends CredentialProvider>
 
 - 
postInitdefault void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<T extends CredentialProvider>
 
 - 
closedefault void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<T extends CredentialProvider>
 
 
- 
 
-