use of org.sklsft.commons.rest.security.annotations.AccessControl in project skeleton-commons by skeleton-software-community.
the class AccessControlAspect method getAccessControlType.
private AccessControlType getAccessControlType(ProceedingJoinPoint joinPoint) {
AccessControlType accessControlType = AccessControlType.PRIVATE;
Method proxiedMethod = ((MethodSignature) joinPoint.getSignature()).getMethod();
AccessControl accessControl = proxiedMethod.getAnnotation(AccessControl.class);
if (accessControl != null) {
accessControlType = accessControl.value();
}
return accessControlType;
}
use of org.sklsft.commons.rest.security.annotations.AccessControl in project skeleton-commons by skeleton-software-community.
the class AccessControlAspect method getTokenExtractionMode.
private TokenExtractionMode getTokenExtractionMode(ProceedingJoinPoint joinPoint) {
TokenExtractionMode tokenExtractionMode = TokenExtractionMode.HEADER;
Method proxiedMethod = ((MethodSignature) joinPoint.getSignature()).getMethod();
AccessControl accessControl = proxiedMethod.getAnnotation(AccessControl.class);
if (accessControl != null) {
tokenExtractionMode = accessControl.tokenExtractionMode();
}
return tokenExtractionMode;
}
Aggregations