Class AuthorizationFilter

java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.runtime.core.api.security.AbstractSecurityFilter
org.mule.extension.spring.internal.security.AuthorizationFilter
All Implemented Interfaces:
org.mule.runtime.api.component.Component, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.core.api.security.SecurityFilter

public class AuthorizationFilter extends org.mule.runtime.core.api.security.AbstractSecurityFilter
Authorizes user access based on the required authorities for a user.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.mule.runtime.api.component.Component

    org.mule.runtime.api.component.Component.Annotations
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     

    Fields inherited from class org.mule.runtime.core.api.security.AbstractSecurityFilter

    registry, securityManager

    Fields inherited from class org.mule.runtime.api.component.AbstractComponent

    ANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY

    Fields inherited from interface org.mule.runtime.api.component.Component

    ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA

    Fields inherited from interface org.mule.runtime.api.lifecycle.Initialisable

    PHASE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthorizationFilter(Collection<String> requiredAuthorities)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.runtime.api.security.SecurityContext
    doFilter(org.mule.runtime.core.api.event.CoreEvent event)
     

    Methods inherited from class org.mule.runtime.core.api.security.AbstractSecurityFilter

    doInitialise, getSecurityManager, getSecurityProviders, initialise

    Methods inherited from class org.mule.runtime.api.component.AbstractComponent

    getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotations

    Methods inherited from class java.lang.Object

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

    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

    • AuthorizationFilter

      public AuthorizationFilter(Collection<String> requiredAuthorities)
  • Method Details

    • doFilter

      public org.mule.runtime.api.security.SecurityContext doFilter(org.mule.runtime.core.api.event.CoreEvent event) throws org.mule.runtime.api.security.SecurityException, org.mule.runtime.api.security.UnknownAuthenticationTypeException, org.mule.runtime.core.api.security.CryptoFailureException, org.mule.runtime.api.security.SecurityProviderNotFoundException, org.mule.runtime.core.api.security.EncryptionStrategyNotFoundException, org.mule.runtime.api.lifecycle.InitialisationException
      Specified by:
      doFilter in interface org.mule.runtime.core.api.security.SecurityFilter
      Specified by:
      doFilter in class org.mule.runtime.core.api.security.AbstractSecurityFilter
      Throws:
      org.mule.runtime.api.security.SecurityException
      org.mule.runtime.api.security.UnknownAuthenticationTypeException
      org.mule.runtime.core.api.security.CryptoFailureException
      org.mule.runtime.api.security.SecurityProviderNotFoundException
      org.mule.runtime.core.api.security.EncryptionStrategyNotFoundException
      org.mule.runtime.api.lifecycle.InitialisationException