Class 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  
      • Fields inherited from class io.jans.service.custom.script.ExternalScriptService

        customScriptConfigurations, customScriptConfigurationsNameMap, customScriptManager, customScriptType, defaultExternalCustomScript, loaded, log
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HOTSWAP_UMA_SCRIPT

        public static final boolean HOTSWAP_UMA_SCRIPT
      • scriptInumMap

        protected java.util.Map<java.lang.String,​io.jans.model.custom.script.conf.CustomScriptConfiguration> scriptInumMap
    • Constructor Detail

      • ExternalUmaRptPolicyService

        public ExternalUmaRptPolicyService()
    • Method Detail

      • reloadExternal

        protected void reloadExternal()
        Overrides:
        reloadExternal in class io.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)