public abstract class AbstractAugumentingClientRegistrationPolicyExecutor extends Object implements ClientPolicyExecutorProvider
Modifier and Type | Field and Description |
---|---|
protected ComponentModel |
componentModel |
protected static String |
IS_AUGMENT |
protected static org.jboss.logging.Logger |
logger |
protected KeycloakSession |
session |
Constructor and Description |
---|
AbstractAugumentingClientRegistrationPolicyExecutor(KeycloakSession session,
ComponentModel componentModel) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
augment(ClientRepresentation rep)
overrides the client settings specified by the argument.
|
void |
executeOnEvent(ClientPolicyContext context)
execute actions against the client on the event defined in
ClientPolicyEvent . |
String |
getName() |
String |
getProviderId() |
protected abstract void |
validate(ClientRepresentation rep)
validate the client settings specified by the argument to check
whether they follows what the executor expects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected static final org.jboss.logging.Logger logger
protected static final String IS_AUGMENT
protected final KeycloakSession session
protected final ComponentModel componentModel
public AbstractAugumentingClientRegistrationPolicyExecutor(KeycloakSession session, ComponentModel componentModel)
public void executeOnEvent(ClientPolicyContext context) throws ClientPolicyException
ClientPolicyExecutorProvider
ClientPolicyEvent
.executeOnEvent
in interface ClientPolicyExecutorProvider
context
- - the context of the event.ClientPolicyException
public String getName()
getName
in interface ClientPolicyExecutorProvider
public String getProviderId()
getProviderId
in interface ClientPolicyExecutorProvider
protected abstract void augment(ClientRepresentation rep)
rep
- - the client settingsprotected abstract void validate(ClientRepresentation rep) throws ClientPolicyException
rep
- - the client settingsClientPolicyException
Copyright © 2020 JBoss by Red Hat. All rights reserved.