java.lang.Object
io.helidon.security.SecurityLevel.SecurityLevelBuilder
- All Implemented Interfaces:
Builder<SecurityLevel.SecurityLevelBuilder,,SecurityLevel> Supplier<SecurityLevel>
- Enclosing class:
SecurityLevel
public static class SecurityLevel.SecurityLevelBuilder
extends Object
implements Builder<SecurityLevel.SecurityLevelBuilder,SecurityLevel>
Builder for
SecurityLevel class.-
Method Summary
Modifier and TypeMethodDescriptionaddClassAnnotation(Annotation annotation) Add a class annotation to the list of annotations already configured.addClassAnnotation(Annotation annotation) Add a class annotation to the list of annotations already configured.addMethodAnnotation(Annotation annotation) Add a method annotation to the list of annotations already configured.addMethodAnnotation(Annotation annotation) Add a method annotation to the list of annotations already configured.build()Build the instance from this builder.classAnnotations(List<Annotation> annotations) Class annotation of the analyzed type.from(SecurityLevel level) Use the provided level as defaults for components not explicitly set on this builder.methodAnnotations(List<Annotation> annotations) Set list of method annotations.methodName(String methodName) Method name of the method being secured.The analyzed type.The analyzed type.withClassAnnotations(Map<Class<? extends Annotation>, List<Annotation>> classAnnotations) Deprecated, for removal: This API element is subject to removal in a future version.withMethodAnnotations(Map<Class<? extends Annotation>, List<Annotation>> methodAnnotations) Deprecated, for removal: This API element is subject to removal in a future version.usemethodAnnotations(java.util.List)insteadwithMethodName(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.usemethodName(String)instead
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<SecurityLevel.SecurityLevelBuilder,SecurityLevel> - Returns:
- instance of the built type
-
type
The analyzed type.- Parameters:
type- class of the type- Returns:
- updated builder instance
-
type
The analyzed type.- Parameters:
typeName- the type- Returns:
- updated builder instance
-
from
Use the provided level as defaults for components not explicitly set on this builder.- Parameters:
level- to read information from- Returns:
- updated builder instance
-
withMethodName
@Deprecated(forRemoval=true, since="4.2.0") public SecurityLevel.SecurityLevelBuilder withMethodName(String methodName) Deprecated, for removal: This API element is subject to removal in a future version.usemethodName(String)insteadSets new method name.- Parameters:
methodName- new method name- Returns:
- updated builder instance
-
methodName
Method name of the method being secured.- Parameters:
methodName- new method name- Returns:
- updated builder instance
-
withClassAnnotations
@Deprecated(forRemoval=true, since="4.2.0") public SecurityLevel.SecurityLevelBuilder withClassAnnotations(Map<Class<? extends Annotation>, List<Annotation>> classAnnotations) Deprecated, for removal: This API element is subject to removal in a future version.useclassAnnotations(java.util.List)insteadSets new class level annotations.- Parameters:
classAnnotations- new class level annotations- Returns:
- updated builder instance
- See Also:
-
addClassAnnotation
Add a class annotation to the list of annotations already configured.- Parameters:
annotation- to add- Returns:
- updated builder instance
-
addClassAnnotation
Add a class annotation to the list of annotations already configured.- Parameters:
annotation- to add- Returns:
- updated builder instance
-
addMethodAnnotation
Add a method annotation to the list of annotations already configured.- Parameters:
annotation- to add- Returns:
- updated builder instance
-
addMethodAnnotation
Add a method annotation to the list of annotations already configured.- Parameters:
annotation- to add- Returns:
- updated builder instance
-
classAnnotations
Class annotation of the analyzed type.- Parameters:
annotations- to set- Returns:
- updated builder instance
-
withMethodAnnotations
@Deprecated(forRemoval=true, since="4.2.0") public SecurityLevel.SecurityLevelBuilder withMethodAnnotations(Map<Class<? extends Annotation>, List<Annotation>> methodAnnotations) Deprecated, for removal: This API element is subject to removal in a future version.usemethodAnnotations(java.util.List)insteadSets new method level annotations.- Parameters:
methodAnnotations- new method level annotations- Returns:
- updated builder instance
-
methodAnnotations
Set list of method annotations.- Parameters:
annotations- annotations of the analyzed method- Returns:
- updated builder instance
-
classAnnotations(java.util.List)instead