Package tech.corefinance.common.aop
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionverifyDeleteRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyGenericRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) Verify request authentication.verifyGetRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyPatchRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyPostRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyPutRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) verifyRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint, org.springframework.web.bind.annotation.RequestMethod requestMethod)
-
Constructor Details
-
ApiAuthorizationCheck
public ApiAuthorizationCheck()
-
-
Method Details
-
verifyGetRequest
- Throws:
Throwable
-
verifyPostRequest
- Throws:
Throwable
-
verifyPutRequest
- Throws:
Throwable
-
verifyPatchRequest
- Throws:
Throwable
-
verifyDeleteRequest
- Throws:
Throwable
-
verifyGenericRequest
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
-