Package org.keycloak.protocol.oid4vc
Class OID4VCLoginProtocolFactory
java.lang.Object
org.keycloak.protocol.oid4vc.OID4VCLoginProtocolFactory
- All Implemented Interfaces:
LoginProtocolFactory,OID4VCEnvironmentProviderFactory,EnvironmentDependentProviderFactory,ProviderFactory<LoginProtocol>
public class OID4VCLoginProtocolFactory
extends Object
implements LoginProtocolFactory, OID4VCEnvironmentProviderFactory
Factory for creating all OID4VC related endpoints and the default mappers.
- Author:
- Stefan Wiedemann
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientScopeDefaults(ClientScopeRepresentation clientScope) Add default values toClientScopeRepresentations that refer to the specific login-protocolvoidclose()This is called when the server shuts down.create(KeycloakSession session) voidcreateDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients) Called when new realm is createdcreateProtocolEndpoint(KeycloakSession keycloakSession, EventBuilder event) List of built in protocol mappers that can be used to apply to clients.getId()voidinit(Config.Scope config) Only called once when the factory is first created.intorder()defines the option-order in the admin-uivoidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoidsetupClientDefaults(ClientRepresentation rep, ClientModel newClient) Setup default values for new clients.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.protocol.oid4vc.OID4VCEnvironmentProviderFactory
isSupportedMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata
-
Field Details
-
PROTOCOL_ID
- See Also:
-
-
Constructor Details
-
OID4VCLoginProtocolFactory
public OID4VCLoginProtocolFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<LoginProtocol>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<LoginProtocol>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<LoginProtocol>
-
getBuiltinMappers
Description copied from interface:LoginProtocolFactoryList of built in protocol mappers that can be used to apply to clients.- Specified by:
getBuiltinMappersin interfaceLoginProtocolFactory- Returns:
-
createProtocolEndpoint
- Specified by:
createProtocolEndpointin interfaceLoginProtocolFactory
-
createDefaultClientScopes
Description copied from interface:LoginProtocolFactoryCalled when new realm is created- Specified by:
createDefaultClientScopesin interfaceLoginProtocolFactoryaddScopesToExistingClients- If true, then existing realm clients will be updated (created realm default scopes will be added to them)
-
setupClientDefaults
Description copied from interface:LoginProtocolFactorySetup default values for new clients. This expects that the representation has already set up the client- Specified by:
setupClientDefaultsin interfaceLoginProtocolFactory
-
addClientScopeDefaults
Description copied from interface:LoginProtocolFactoryAdd default values toClientScopeRepresentations that refer to the specific login-protocol- Specified by:
addClientScopeDefaultsin interfaceLoginProtocolFactory
-
create
- Specified by:
createin interfaceProviderFactory<LoginProtocol>
-
getId
- Specified by:
getIdin interfaceProviderFactory<LoginProtocol>
-
order
public int order()defines the option-order in the admin-ui- Specified by:
orderin interfaceProviderFactory<LoginProtocol>
-