Class ClientPolicyProviderFactory
- java.lang.Object
-
- org.keycloak.authorization.policy.provider.client.ClientPolicyProviderFactory
-
- All Implemented Interfaces:
PolicyProviderFactory<ClientPolicyRepresentation>
,ProviderFactory<PolicyProvider>
public class ClientPolicyProviderFactory extends Object implements PolicyProviderFactory<ClientPolicyRepresentation>
-
-
Constructor Summary
Constructors Constructor Description ClientPolicyProviderFactory()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.authorization.policy.provider.PolicyProviderFactory
getAdminResource, isInternal, onRemove
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
getGroup
public String getGroup()
- Specified by:
getGroup
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
create
public PolicyProvider create(AuthorizationProvider authorization)
- Specified by:
create
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
toRepresentation
public ClientPolicyRepresentation toRepresentation(Policy policy, AuthorizationProvider authorization)
- Specified by:
toRepresentation
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
getRepresentationType
public Class<ClientPolicyRepresentation> getRepresentationType()
- Specified by:
getRepresentationType
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
onCreate
public void onCreate(Policy policy, ClientPolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onCreate
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
onUpdate
public void onUpdate(Policy policy, ClientPolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onUpdate
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
onImport
public void onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onImport
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
onExport
public void onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onExport
in interfacePolicyProviderFactory<ClientPolicyRepresentation>
-
create
public PolicyProvider create(KeycloakSession session)
- Specified by:
create
in interfaceProviderFactory<PolicyProvider>
-
init
public void init(Config.Scope config)
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<PolicyProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<PolicyProvider>
-
close
public void close()
Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<PolicyProvider>
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory<PolicyProvider>
-
-