Class DeployedScriptPolicyFactory
java.lang.Object
org.keycloak.authorization.policy.provider.js.JSPolicyProviderFactory
org.keycloak.authorization.policy.provider.js.DeployedScriptPolicyFactory
- All Implemented Interfaces:
PolicyProviderFactory<JSPolicyRepresentation>
,ProviderFactory<PolicyProvider>
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
protected ScriptModel
getScriptModel
(Policy policy, RealmModel realm, ScriptingProvider scripting) protected boolean
boolean
void
onCreate
(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization) void
setMetadata
(ScriptProviderMetadata metadata) toRepresentation
(Policy policy, AuthorizationProvider authorization) Methods inherited from class org.keycloak.authorization.policy.provider.js.JSPolicyProviderFactory
close, create, create, getGroup, getRepresentationType, init, onImport, onRemove, onUpdate, postInit
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, onExport
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Constructor Details
-
DeployedScriptPolicyFactory
-
DeployedScriptPolicyFactory
public DeployedScriptPolicyFactory()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<PolicyProvider>
- Overrides:
getId
in classJSPolicyProviderFactory
-
getName
- Specified by:
getName
in interfacePolicyProviderFactory<JSPolicyRepresentation>
- Overrides:
getName
in classJSPolicyProviderFactory
-
isDeployed
protected boolean isDeployed()- Overrides:
isDeployed
in classJSPolicyProviderFactory
-
isInternal
public boolean isInternal()- Specified by:
isInternal
in interfacePolicyProviderFactory<JSPolicyRepresentation>
- Overrides:
isInternal
in classJSPolicyProviderFactory
-
toRepresentation
- Specified by:
toRepresentation
in interfacePolicyProviderFactory<JSPolicyRepresentation>
- Overrides:
toRepresentation
in classJSPolicyProviderFactory
-
getScriptModel
- Overrides:
getScriptModel
in classJSPolicyProviderFactory
-
onCreate
public void onCreate(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization) - Specified by:
onCreate
in interfacePolicyProviderFactory<JSPolicyRepresentation>
- Overrides:
onCreate
in classJSPolicyProviderFactory
-
getMetadata
-
setMetadata
-