Class ExternalUmaRptPolicyService

  • All Implemented Interfaces:
    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 Map<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
    • Field Detail

      • HOTSWAP_UMA_SCRIPT

        public static final boolean HOTSWAP_UMA_SCRIPT
      • scriptInumMap

        protected Map<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​(String scriptDn)
      • getScriptByInum

        public io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByInum​(String inum)
      • authorize

        public boolean authorize​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                 UmaAuthorizationContext context)
      • getRequiredClaims

        public List<io.jans.model.uma.ClaimDefinition> getRequiredClaims​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                                                         UmaAuthorizationContext context)
      • getClaimsGatheringScriptName

        public 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)