Class RoleAnnotationAnalyzer
java.lang.Object
io.helidon.security.abac.role.RoleAnnotationAnalyzer
- All Implemented Interfaces:
AnnotationAnalyzer
Implementation of
AnnotationAnalyzer which checks for PermitAll annotation if
authentication is needed or not.-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationAnalyzer
AnnotationAnalyzer.AnalyzerResponse, AnnotationAnalyzer.FlagModifier and TypeInterfaceDescriptionstatic final classResponse of an analysis run.static enumFlag for security type. -
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnnotationAnalyzer
init
-
Constructor Details
-
RoleAnnotationAnalyzer
public RoleAnnotationAnalyzer()Create a role annotation analyzer.
-
-
Method Details
-
analyze
Description copied from interface:AnnotationAnalyzerAnalyze an application class.- Specified by:
analyzein interfaceAnnotationAnalyzer- Parameters:
maybeAnnotated- class of the application layer- Returns:
- response with information whether to (and how) authenticate and authorize
-
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 endpointannotations- 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 methodpreviousResponse- response from parent of this class (e.g. from resource class analysis)- Returns:
- response with information whether to (and how) authenticate and authorize
-