- java.lang.Object
- 
- io.helidon.security.SecurityLevel
 
- 
 public class SecurityLevel extends Object Security level stores annotations bound to the specific class and method. The first level representsEndpointConfig.AnnotationScope.APPLICATIONlevel annotations. Other levels are representations of resource, sub-resource and method used on path to get to the target method.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSecurityLevel.SecurityLevelBuilderBuilder forSecurityLevelclass.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Class<? extends Annotation>,List<Annotation>>allAnnotations()Returns class level and method level annotations together in oneMap.<T extends Annotation>
 List<T>combineAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope... scopes)Combines all the annotations of the specific type across all the requested scopes.static SecurityLevel.SecurityLevelBuildercreate(SecurityLevel copyFrom)Creates builder for security levels based on previously created security level.static SecurityLevel.SecurityLevelBuildercreate(String className)Creates builder for security levels based on class name.<T extends Annotation>
 List<T>filterAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope scope)Filters out all annotations of the specific type in the specific scope.Map<Class<? extends Annotation>,List<Annotation>>getClassLevelAnnotations()Returns class level annotations.StringgetClassName()Returns the name of the class which this level represents.Map<Class<? extends Annotation>,List<Annotation>>getMethodLevelAnnotations()Returns method level annotations.StringgetMethodName()Returns the name of the method which this level represents.StringtoString()
 
- 
- 
- 
Method Detail- 
createpublic static SecurityLevel.SecurityLevelBuilder create(String className) Creates builder for security levels based on class name.- Parameters:
- className- class name
- Returns:
- new builder
 
 - 
createpublic static SecurityLevel.SecurityLevelBuilder create(SecurityLevel copyFrom) Creates builder for security levels based on previously created security level.- Parameters:
- copyFrom- existing security level
- Returns:
- new builder
 
 - 
filterAnnotationspublic <T extends Annotation> List<T> filterAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope scope) Filters out all annotations of the specific type in the specific scope.- Type Parameters:
- T- annotation type
- Parameters:
- annotationType- type of the annotation
- scope- desired scope
- Returns:
- list of annotations
 
 - 
combineAnnotationspublic <T extends Annotation> List<T> combineAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope... scopes) Combines all the annotations of the specific type across all the requested scopes.- Type Parameters:
- T- annotation type
- Parameters:
- annotationType- type of the annotation
- scopes- desired scopes
- Returns:
- list of annotations
 
 - 
allAnnotationspublic Map<Class<? extends Annotation>,List<Annotation>> allAnnotations() Returns class level and method level annotations together in oneMap.- Returns:
- map with class and method level annotations
 
 - 
getClassNamepublic String getClassName() Returns the name of the class which this level represents.- Returns:
- class name
 
 - 
getMethodNamepublic String getMethodName() Returns the name of the method which this level represents.- Returns:
- method name
 
 - 
getClassLevelAnnotationspublic Map<Class<? extends Annotation>,List<Annotation>> getClassLevelAnnotations() Returns class level annotations.- Returns:
- map of annotations
 
 - 
getMethodLevelAnnotationspublic Map<Class<? extends Annotation>,List<Annotation>> getMethodLevelAnnotations() Returns method level annotations.- Returns:
- map of annotations
 
 
- 
 
-