Package io.helidon.microprofile.jwt.auth
Class JwtAuthAnnotationAnalyzer
java.lang.Object
io.helidon.microprofile.jwt.auth.JwtAuthAnnotationAnalyzer
- All Implemented Interfaces:
AnnotationAnalyzer
Implementation of
AnnotationAnalyzer which checks for LoginConfig annotation if
JWT Authentication should be enabled.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.security.providers.common.spi.AnnotationAnalyzer
AnnotationAnalyzer.AnalyzerResponse, AnnotationAnalyzer.Flag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(TypeName typeName, TypedElementInfo method, AnnotationAnalyzer.AnalyzerResponse previousResponse) Analyze a resource method.analyze(TypeName applicationType, List<Annotation> annotations) Analyze application annotations.analyze(TypeName endpointType, List<Annotation> annotations, AnnotationAnalyzer.AnalyzerResponse previousResponse) Analyze an endpoint class.Analyze an application class.analyze(Class<?> maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse) Analyze a resource class.analyze(Method maybeAnnotated, AnnotationAnalyzer.AnalyzerResponse previousResponse) Analyze a resource method.voidProvides configuration on node "security.jersey.analyzers".toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.security.providers.common.spi.AnnotationAnalyzer
init
-
Constructor Details
-
JwtAuthAnnotationAnalyzer
public JwtAuthAnnotationAnalyzer()
-
-
Method Details
-
init
Description copied from interface:AnnotationAnalyzerProvides configuration on node "security.jersey.analyzers".API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version
- Specified by:
initin interfaceAnnotationAnalyzer- Parameters:
config- config to use to configure an analyzer, may be empty (e.g. have reasonable defaults if possible)
-
analyze
public AnnotationAnalyzer.AnalyzerResponse analyze(TypeName applicationType, List<Annotation> annotations) Description copied from interface:AnnotationAnalyzerAnalyze application annotations.- Specified by:
analyzein interfaceAnnotationAnalyzer- Parameters:
applicationType- type to analyzeannotations- annotations on the type- Returns:
- response on how to authenticate and authorize
-
analyze
public AnnotationAnalyzer.AnalyzerResponse analyze(TypeName endpointType, List<Annotation> annotations, AnnotationAnalyzer.AnalyzerResponse previousResponse) Description copied from interface:AnnotationAnalyzerAnalyze an endpoint class.- Specified by:
analyzein interfaceAnnotationAnalyzer- Parameters:
endpointType- type of the endpoint (such as JAX-RS resource)annotations- annotations on the typepreviousResponse- 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(TypeName typeName, TypedElementInfo method, AnnotationAnalyzer.AnalyzerResponse previousResponse) Description copied from interface:AnnotationAnalyzerAnalyze a resource method. By default returns an abstain response.- Specified by:
analyzein interfaceAnnotationAnalyzer- Parameters:
typeName- type that contains the methodmethod- endpoint method (such as JAX-RS method)previousResponse- response from parent of this class (e.g. from resource class analysis)- Returns:
- response with information whether to (and how) authenticate and authorize
-
analyze
Description copied from interface:AnnotationAnalyzerAnalyze an application class.- Specified by:
analyzein 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:AnnotationAnalyzerAnalyze a resource class. By default returns an abstain response.- Specified by:
analyzein 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:AnnotationAnalyzerAnalyze a resource method. By default returns an abstain response.- Specified by:
analyzein 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
-
toString
-