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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.create
(KeycloakSession session) void
createDefaultClientScopes
(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()
void
init
(Config.Scope config) Only called once when the factory is first created.void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoid
setupClientDefaults
(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, wait
Methods inherited from interface org.keycloak.protocol.oid4vc.OID4VCEnvironmentProviderFactory
isSupported
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
PROTOCOL_ID
- See Also:
-
-
Constructor Details
-
OID4VCLoginProtocolFactory
public OID4VCLoginProtocolFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<LoginProtocol>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<LoginProtocol>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<LoginProtocol>
-
getBuiltinMappers
Description copied from interface:LoginProtocolFactory
List of built in protocol mappers that can be used to apply to clients.- Specified by:
getBuiltinMappers
in interfaceLoginProtocolFactory
- Returns:
-
createProtocolEndpoint
- Specified by:
createProtocolEndpoint
in interfaceLoginProtocolFactory
-
createDefaultClientScopes
Description copied from interface:LoginProtocolFactory
Called when new realm is created- Specified by:
createDefaultClientScopes
in interfaceLoginProtocolFactory
addScopesToExistingClients
- If true, then existing realm clients will be updated (created realm default scopes will be added to them)
-
setupClientDefaults
Description copied from interface:LoginProtocolFactory
Setup default values for new clients. This expects that the representation has already set up the client- Specified by:
setupClientDefaults
in interfaceLoginProtocolFactory
-
create
- Specified by:
create
in interfaceProviderFactory<LoginProtocol>
-
getId
- Specified by:
getId
in interfaceProviderFactory<LoginProtocol>
-