Class BasicAuthAoe

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.auth_client.beans.BasicAuthAoe

public abstract class BasicAuthAoe extends systems.dennis.shared.utils.ApplicationContext
This class will add aop method to validate the token
  • Field Summary

    Fields inherited from class systems.dennis.shared.utils.ApplicationContext

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicAuthAoe(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    beforeAdvice(org.aspectj.lang.JoinPoint joinPoint)
     
    void
    validate(jakarta.servlet.http.HttpServletRequest request, List<String> roles, RoleValidationType validationType)
     
    void
     

    Methods inherited from class systems.dennis.shared.utils.ApplicationContext

    canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BasicAuthAoe

      public BasicAuthAoe(systems.dennis.shared.config.WebContext context)
  • Method Details

    • anyPublicMethod

      public void anyPublicMethod()
    • withRole2

      public void withRole2()
    • beforeAdvice

      public void beforeAdvice(org.aspectj.lang.JoinPoint joinPoint)
    • additionalRoles

      public List<String> additionalRoles(Object target)
    • validate

      public void validate(jakarta.servlet.http.HttpServletRequest request, List<String> roles, RoleValidationType validationType) throws systems.dennis.shared.exceptions.AuthorizationNotFoundException, RolesNotFoundForTokenException
      Throws:
      systems.dennis.shared.exceptions.AuthorizationNotFoundException
      RolesNotFoundForTokenException