Class AbstractClientRegistrationProvider
- java.lang.Object
-
- org.keycloak.services.clientregistration.AbstractClientRegistrationProvider
-
- All Implemented Interfaces:
Provider
,ClientRegistrationProvider
- Direct Known Subclasses:
DefaultClientRegistrationProvider
,EntityDescriptorClientRegistrationProvider
,OIDCClientRegistrationProvider
public abstract class AbstractClientRegistrationProvider extends Object implements ClientRegistrationProvider
- Author:
- Stian Thorgersen
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientRegistrationAuth
auth
protected EventBuilder
event
protected KeycloakSession
session
-
Constructor Summary
Constructors Constructor Description AbstractClientRegistrationProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ClientRepresentation
create(ClientRegistrationContext context)
void
delete(String clientId)
ClientRepresentation
get(ClientModel client)
ClientRegistrationAuth
getAuth()
EventBuilder
getEvent()
void
setAuth(ClientRegistrationAuth auth)
void
setEvent(EventBuilder event)
ClientRepresentation
update(String clientId, ClientRegistrationContext context)
void
validateClient(ClientModel clientModel, OIDCClientRepresentation oidcClient, boolean create)
void
validateClient(ClientRepresentation clientRep, boolean create)
-
-
-
Field Detail
-
session
protected KeycloakSession session
-
event
protected EventBuilder event
-
auth
protected ClientRegistrationAuth auth
-
-
Constructor Detail
-
AbstractClientRegistrationProvider
public AbstractClientRegistrationProvider(KeycloakSession session)
-
-
Method Detail
-
create
public ClientRepresentation create(ClientRegistrationContext context)
-
get
public ClientRepresentation get(ClientModel client)
-
update
public ClientRepresentation update(String clientId, ClientRegistrationContext context)
-
delete
public void delete(String clientId)
-
validateClient
public void validateClient(ClientModel clientModel, OIDCClientRepresentation oidcClient, boolean create)
-
validateClient
public void validateClient(ClientRepresentation clientRep, boolean create)
-
setAuth
public void setAuth(ClientRegistrationAuth auth)
- Specified by:
setAuth
in interfaceClientRegistrationProvider
-
getAuth
public ClientRegistrationAuth getAuth()
- Specified by:
getAuth
in interfaceClientRegistrationProvider
-
setEvent
public void setEvent(EventBuilder event)
- Specified by:
setEvent
in interfaceClientRegistrationProvider
-
getEvent
public EventBuilder getEvent()
- Specified by:
getEvent
in interfaceClientRegistrationProvider
-
-