Class ExternalUmaRptPolicyService

java.lang.Object
org.gluu.service.custom.script.ExternalScriptService
org.gluu.oxauth.service.external.ExternalUmaRptPolicyService
All Implemented Interfaces:
Serializable

@ApplicationScoped public class ExternalUmaRptPolicyService extends org.gluu.service.custom.script.ExternalScriptService
Provides factory methods needed to create external UMA authorization policies extension
Author:
Yuriy Zabrovarnyy, Yuriy Movchan
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
     
    protected Map<String,org.gluu.model.custom.script.conf.CustomScriptConfiguration>
     

    Fields inherited from class org.gluu.service.custom.script.ExternalScriptService

    customScriptConfigurations, customScriptConfigurationsNameMap, customScriptManager, customScriptType, defaultExternalCustomScript, loaded
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authorize(org.gluu.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
     
    getClaimsGatheringScriptName(org.gluu.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
     
    List<org.gluu.model.uma.ClaimDefinition>
    getRequiredClaims(org.gluu.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
     
    org.gluu.model.custom.script.conf.CustomScriptConfiguration
     
    org.gluu.model.custom.script.conf.CustomScriptConfiguration
     
    static <T> T
    hotswap(org.gluu.service.custom.script.CustomScriptManager scriptManager, org.gluu.model.custom.script.conf.CustomScriptConfiguration script, boolean rptPolicyScript)
     
    protected void
     

    Methods inherited from class org.gluu.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 Details

    • HOTSWAP_UMA_SCRIPT

      public static final boolean HOTSWAP_UMA_SCRIPT
    • scriptInumMap

      protected Map<String,org.gluu.model.custom.script.conf.CustomScriptConfiguration> scriptInumMap
  • Constructor Details

    • ExternalUmaRptPolicyService

      public ExternalUmaRptPolicyService()
  • Method Details

    • reloadExternal

      protected void reloadExternal()
      Overrides:
      reloadExternal in class org.gluu.service.custom.script.ExternalScriptService
    • getScriptByDn

      public org.gluu.model.custom.script.conf.CustomScriptConfiguration getScriptByDn(String scriptDn)
    • getScriptByInum

      public org.gluu.model.custom.script.conf.CustomScriptConfiguration getScriptByInum(String inum)
    • authorize

      public boolean authorize(org.gluu.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
    • getRequiredClaims

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

      public String getClaimsGatheringScriptName(org.gluu.model.custom.script.conf.CustomScriptConfiguration script, UmaAuthorizationContext context)
    • hotswap

      public static <T> T hotswap(org.gluu.service.custom.script.CustomScriptManager scriptManager, org.gluu.model.custom.script.conf.CustomScriptConfiguration script, boolean rptPolicyScript)