Class SecurityLevel.SecurityLevelBuilder
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SecurityLevelget()identity()Instance of this builder as the correct type.update(Consumer<SecurityLevel.SecurityLevelBuilder> consumer) Update the builder in a fluent API way.
-
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
-
methodName
Method name of the method being secured.- Parameters:
methodName- new method name- Returns:
- updated builder instance
-
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
-
methodAnnotations
Set list of method annotations.- Parameters:
annotations- annotations of the analyzed method- Returns:
- updated builder instance
-