Class ClientScopePolicyProviderFactory
- java.lang.Object
-
- org.keycloak.authorization.policy.provider.clientscope.ClientScopePolicyProviderFactory
-
- All Implemented Interfaces:
PolicyProviderFactory<ClientScopePolicyRepresentation>
,ProviderFactory<PolicyProvider>
public class ClientScopePolicyProviderFactory extends Object implements PolicyProviderFactory<ClientScopePolicyRepresentation>
- Author:
- Yoshiyuki Tabata
-
-
Constructor Summary
Constructors Constructor Description ClientScopePolicyProviderFactory()
-
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
-
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>
-
getName
public String getName()
- Specified by:
getName
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
getGroup
public String getGroup()
- Specified by:
getGroup
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
create
public PolicyProvider create(AuthorizationProvider authorization)
- Specified by:
create
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
toRepresentation
public ClientScopePolicyRepresentation toRepresentation(Policy policy, AuthorizationProvider authorization)
- Specified by:
toRepresentation
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
getRepresentationType
public Class<ClientScopePolicyRepresentation> getRepresentationType()
- Specified by:
getRepresentationType
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
onCreate
public void onCreate(Policy policy, ClientScopePolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onCreate
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
onUpdate
public void onUpdate(Policy policy, ClientScopePolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onUpdate
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
onImport
public void onImport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorization)
- Specified by:
onImport
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
onExport
public void onExport(Policy policy, PolicyRepresentation representation, AuthorizationProvider authorizationProvider)
- Specified by:
onExport
in interfacePolicyProviderFactory<ClientScopePolicyRepresentation>
-
-