Class ApiAuthorizationCheck

java.lang.Object
tech.corefinance.common.aop.ApiAuthorizationCheck

@Component @ConditionalOnProperty(prefix="tech.corefinance.security", name="authorize-check", havingValue="true", matchIfMissing=true) public class ApiAuthorizationCheck extends Object
  • Constructor Details

    • ApiAuthorizationCheck

      public ApiAuthorizationCheck()
  • Method Details

    • verifyGetRequest

      public Object verifyGetRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyPostRequest

      public Object verifyPostRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyPutRequest

      public Object verifyPutRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyPatchRequest

      public Object verifyPatchRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyDeleteRequest

      public Object verifyDeleteRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyGenericRequest

      public Object verifyGenericRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Verify request authentication.
      Parameters:
      joinPoint - This is param of AOP. Just ignore it
      Returns:
      result of the wrapped services method
      Throws:
      Throwable - when target method have exception
    • verifyRequest

      public Object verifyRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint, org.springframework.web.bind.annotation.RequestMethod requestMethod) throws Throwable
      Throws:
      Throwable