Class SecurityLevel
java.lang.Object
io.helidon.security.SecurityLevel
Security level stores annotations bound to the specific class and method.
The first level represents EndpointConfig.AnnotationScope.APPLICATION level annotations.
Other levels are representations of resource, sub-resource and method used on path to get to the target method.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns all class level and method level annotations.builder()Create a new fluent API builder for this type.Annotations on the class.combineAnnotations(TypeName annotationType, EndpointConfig.AnnotationScope... scopes) Combines all the annotations of the specific type across all the requested scopes.filterAnnotations(TypeName annotationType, EndpointConfig.AnnotationScope scope) Filters out all annotations of the specific type in the specific scope.Annotations on the method.Name of the method this level represents, orUnknownif this level does not represent a method.toString()typeName()Type of the class this level represents (such as an endpoint class).
-
Method Details
-
builder
Create a new fluent API builder for this type.- Returns:
- a new builder
-
filterAnnotations
public List<Annotation> filterAnnotations(TypeName annotationType, EndpointConfig.AnnotationScope scope) Filters out all annotations of the specific type in the specific scope.- Parameters:
annotationType- type of the annotationscope- desired scope- Returns:
- list of annotations
-
combineAnnotations
public List<Annotation> combineAnnotations(TypeName annotationType, EndpointConfig.AnnotationScope... scopes) Combines all the annotations of the specific type across all the requested scopes.- Parameters:
annotationType- type of the annotationscopes- desired scopes- Returns:
- list of annotations
-
annotations
Returns all class level and method level annotations.- Returns:
- list with class and method level annotations
-
typeName
Type of the class this level represents (such as an endpoint class).- Returns:
- the type name
-
methodName
Name of the method this level represents, orUnknownif this level does not represent a method.- Returns:
- method name
-
classAnnotations
Annotations on the class.- Returns:
- list of class annotations
-
methodAnnotations
Annotations on the method.- Returns:
- list of method annotations
-
toString
-