Package io.helidon.security.abac.role
Class RoleAnnotationAnalyzer
- java.lang.Object
-
- io.helidon.security.abac.role.RoleAnnotationAnalyzer
-
- All Implemented Interfaces:
AnnotationAnalyzer
@Priority(5000) public class RoleAnnotationAnalyzer extends Object implements AnnotationAnalyzer
Implementation ofAnnotationAnalyzer
which checks forPermitAll
annotation if authentication is needed or not.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.security.providers.common.spi.AnnotationAnalyzer
AnnotationAnalyzer.AnalyzerResponse, AnnotationAnalyzer.Flag
-
-
Constructor Summary
Constructors Constructor Description RoleAnnotationAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationAnalyzer.AnalyzerResponse
analyze(Class<?> maybeAnnotated)
Analyze an application class.AnnotationAnalyzer.AnalyzerResponse
analyze(Class<?> maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse)
Analyze a resource class.AnnotationAnalyzer.AnalyzerResponse
analyze(Method maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse)
Analyze a resource method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.security.providers.common.spi.AnnotationAnalyzer
init
-
-
-
-
Method Detail
-
analyze
public AnnotationAnalyzer.AnalyzerResponse analyze(Class<?> maybeAnnotated)
Description copied from interface:AnnotationAnalyzer
Analyze an application class.- Specified by:
analyze
in interfaceAnnotationAnalyzer
- Parameters:
maybeAnnotated
- class of the JAX-RS application- Returns:
- response with information whether to (and how) authenticate and authorize
-
analyze
public AnnotationAnalyzer.AnalyzerResponse analyze(Class<?> maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse)
Description copied from interface:AnnotationAnalyzer
Analyze a resource class. By default returns an abstain response.- Specified by:
analyze
in interfaceAnnotationAnalyzer
- Parameters:
maybeAnnotated
- class of the JAX-RS resourcepreviousResponse
- response from parent of this class (e.g. from application analysis)- Returns:
- response with information whether to (and how) authenticate and authorize
-
analyze
public AnnotationAnalyzer.AnalyzerResponse analyze(Method maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse)
Description copied from interface:AnnotationAnalyzer
Analyze a resource method. By default returns an abstain response.- Specified by:
analyze
in interfaceAnnotationAnalyzer
- Parameters:
maybeAnnotated
- JAX-RS resource methodpreviousResponse
- response from parent of this class (e.g. from resource class analysis)- Returns:
- response with information whether to (and how) authenticate and authorize
-
-