public class SecurityLevel extends Object
EndpointConfig.AnnotationScope.APPLICATION level annotations.
Other levels are representations of resource, sub-resource and method used on path to get to the target method.| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityLevel.SecurityLevelBuilder
Builder for
SecurityLevel class. |
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Annotation>,List<Annotation>> |
allAnnotations()
Returns class level and method level annotations together in one
Map. |
<T extends Annotation> |
combineAnnotations(Class<T> annotationType,
EndpointConfig.AnnotationScope... scopes)
Combines all the annotations of the specific type across all the requested scopes.
|
static SecurityLevel.SecurityLevelBuilder |
create(SecurityLevel copyFrom)
Creates builder for security levels based on previously created security level.
|
static SecurityLevel.SecurityLevelBuilder |
create(String className)
Creates builder for security levels based on class name.
|
<T extends Annotation> |
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.
|
String |
getClassName()
Returns the name of the class which this level represents.
|
Map<Class<? extends Annotation>,List<Annotation>> |
getMethodLevelAnnotations()
Returns method level annotations.
|
String |
getMethodName()
Returns the name of the method which this level represents.
|
String |
toString() |
public static SecurityLevel.SecurityLevelBuilder create(String className)
className - class namepublic static SecurityLevel.SecurityLevelBuilder create(SecurityLevel copyFrom)
copyFrom - existing security levelpublic <T extends Annotation> List<T> filterAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope scope)
T - annotation typeannotationType - type of the annotationscope - desired scopepublic <T extends Annotation> List<T> combineAnnotations(Class<T> annotationType, EndpointConfig.AnnotationScope... scopes)
T - annotation typeannotationType - type of the annotationscopes - desired scopespublic Map<Class<? extends Annotation>,List<Annotation>> allAnnotations()
Map.public String getClassName()
public String getMethodName()
public Map<Class<? extends Annotation>,List<Annotation>> getClassLevelAnnotations()
public Map<Class<? extends Annotation>,List<Annotation>> getMethodLevelAnnotations()
Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.