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>
public final class DeployedScriptPolicyFactory extends JSPolicyProviderFactory
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description DeployedScriptPolicyFactory()
DeployedScriptPolicyFactory(ScriptProviderMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
ScriptProviderMetadata
getMetadata()
String
getName()
protected ScriptModel
getScriptModel(Policy policy, RealmModel realm, ScriptingProvider scripting)
protected boolean
isDeployed()
boolean
isInternal()
void
onCreate(Policy policy, JSPolicyRepresentation representation, AuthorizationProvider authorization)
void
setMetadata(ScriptProviderMetadata metadata)
JSPolicyRepresentation
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 Detail
-
DeployedScriptPolicyFactory
public DeployedScriptPolicyFactory(ScriptProviderMetadata metadata)
-
DeployedScriptPolicyFactory
public DeployedScriptPolicyFactory()
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory<PolicyProvider>
- Overrides:
getId
in classJSPolicyProviderFactory
-
getName
public String 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
public JSPolicyRepresentation toRepresentation(Policy policy, AuthorizationProvider authorization)
- Specified by:
toRepresentation
in interfacePolicyProviderFactory<JSPolicyRepresentation>
- Overrides:
toRepresentation
in classJSPolicyProviderFactory
-
getScriptModel
protected ScriptModel getScriptModel(Policy policy, RealmModel realm, ScriptingProvider scripting)
- 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
public ScriptProviderMetadata getMetadata()
-
setMetadata
public void setMetadata(ScriptProviderMetadata metadata)
-
-