Class ExternalUmaRptPolicyService
- java.lang.Object
-
- io.jans.service.custom.script.ExternalScriptService
-
- io.jans.as.server.service.external.ExternalUmaRptPolicyService
-
- All Implemented Interfaces:
java.io.Serializable
@ApplicationScoped @Named public class ExternalUmaRptPolicyService extends io.jans.service.custom.script.ExternalScriptService
Provides factory methods needed to create external UMA authorization policies extension- Author:
- Yuriy Zabrovarnyy, Yuriy Movchan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
HOTSWAP_UMA_SCRIPT
protected java.util.Map<java.lang.String,io.jans.model.custom.script.conf.CustomScriptConfiguration>
scriptInumMap
-
Constructor Summary
Constructors Constructor Description ExternalUmaRptPolicyService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authorize(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
java.lang.String
getClaimsGatheringScriptName(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
java.util.List<io.jans.model.uma.ClaimDefinition>
getRequiredClaims(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
io.jans.model.custom.script.conf.CustomScriptConfiguration
getScriptByDn(java.lang.String scriptDn)
io.jans.model.custom.script.conf.CustomScriptConfiguration
getScriptByInum(java.lang.String inum)
static <T> T
hotswap(io.jans.service.custom.script.ExternalTypeCreator externalTypeCreator, io.jans.model.custom.script.conf.CustomScriptConfiguration script, boolean rptPolicyScript)
protected void
reloadExternal()
-
Methods inherited from class io.jans.service.custom.script.ExternalScriptService
addExternalConfigurations, clearScriptError, configure, determineDefaultCustomScriptConfiguration, executeExternalGetApiVersion, getCustomScriptConfigurationByName, getCustomScriptConfigurations, getCustomScriptConfigurationsByDns, getCustomScriptType, getDefaultExternalCustomScript, init, isEnabled, isLoaded, reload, saveScriptError
-
-
-
-
Method Detail
-
reloadExternal
protected void reloadExternal()
- Overrides:
reloadExternal
in classio.jans.service.custom.script.ExternalScriptService
-
getScriptByDn
public io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByDn(java.lang.String scriptDn)
-
getScriptByInum
public io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByInum(java.lang.String inum)
-
authorize
public boolean authorize(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
-
getRequiredClaims
public java.util.List<io.jans.model.uma.ClaimDefinition> getRequiredClaims(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
-
getClaimsGatheringScriptName
public java.lang.String getClaimsGatheringScriptName(io.jans.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
-
hotswap
public static <T> T hotswap(io.jans.service.custom.script.ExternalTypeCreator externalTypeCreator, io.jans.model.custom.script.conf.CustomScriptConfiguration script, boolean rptPolicyScript)
-
-