Class GrpcSecurityHandlerConfig.Builder
java.lang.Object
io.helidon.webserver.grpc.security.GrpcSecurityHandlerConfig.BuilderBase<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig>
io.helidon.webserver.grpc.security.GrpcSecurityHandlerConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig>, Builder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandler>, ConfigBuilderSupport.ConfiguredBuilder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig>, Supplier<GrpcSecurityHandler>
- Enclosing interface:
GrpcSecurityHandlerConfig
public static class GrpcSecurityHandlerConfig.Builder
extends GrpcSecurityHandlerConfig.BuilderBase<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig>
implements Builder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandler>
Fluent API builder for
GrpcSecurityHandler.-
Nested Class Summary
Nested classes/interfaces inherited from class GrpcSecurityHandlerConfig.BuilderBase
GrpcSecurityHandlerConfig.BuilderBase.GrpcSecurityHandlerConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class GrpcSecurityHandlerConfig.BuilderBase
addObject, addObject, addRoleAllowed, addRolesAllowed, addSecurityLevel, addSecurityLevel, addSecurityLevels, audit, audit, auditErrorSeverity, auditErrorSeverity, auditEventType, auditEventType, auditMessageFormat, auditMessageFormat, auditOkSeverity, auditOkSeverity, authenticate, authenticate, authenticationOptional, authenticationOptional, authenticator, authenticator, authorize, authorize, authorizer, authorizer, clearAudit, clearAuditErrorSeverity, clearAuditEventType, clearAuditMessageFormat, clearAuditOkSeverity, clearAuthenticate, clearAuthenticationOptional, clearAuthenticator, clearAuthorize, clearAuthorizer, clearCustomObjects, clearInheritedAuthenticator, clearInheritedAuthenticator, clearInheritedAuthorizer, clearInheritedAuthorizer, clearInheritedRolesAllowed, clearInheritedRolesAllowed, clearRolesAllowed, clearSecurityLevels, config, config, customObjects, customObjects, from, from, preBuildPrototype, rolesAllowed, rolesAllowed, securityLevels, securityLevels, toString, validatePrototypeModifier and TypeMethodDescriptionRegister a custom object for security request(s).Register a custom object for security request(s).addRoleAllowed(String roleAllowed) An array of allowed roles for this gRPC method.addRolesAllowed(Set<String> rolesAllowed) An array of allowed roles for this gRPC method.addSecurityLevel(SecurityLevel securityLevel) Security levels discovered from endpoint annotations.Security levels discovered from endpoint annotations.addSecurityLevels(List<? extends SecurityLevel> securityLevels) Security levels discovered from endpoint annotations.audit()Whether to audit this request.audit(boolean audit) Whether to audit this request.Severity to use for failed requests.auditErrorSeverity(AuditEvent.AuditSeverity auditErrorSeverity) Severity to use for failed requests.Override for audit event type.auditEventType(String auditEventType) Override for audit event type.Override for audit message format.auditMessageFormat(String auditMessageFormat) Override for audit message format.Severity to use for successful requests.auditOkSeverity(AuditEvent.AuditSeverity auditOkSeverity) Severity to use for successful requests.Whether to authenticate this request.authenticate(boolean authenticate) Whether to authenticate this request.Whether authentication failure should continue as anonymous.authenticationOptional(boolean authenticationOptional) Whether authentication failure should continue as anonymous.Use a named authenticator.authenticator(String authenticator) Use a named authenticator.Whether to authorize this request.authorize(boolean authorize) Whether to authorize this request.Use a named authorizer.authorizer(String authorizer) Use a named authorizer.Clear existing value of audit.Clear existing value of auditErrorSeverity.Clear existing value of auditEventType.Clear existing value of auditMessageFormat.Clear existing value of auditOkSeverity.Clear existing value of authenticate.Clear existing value of authenticationOptional.Clear existing value of authenticator.Clear existing value of authorize.Clear existing value of authorizer.Clear existing value of customObjects.booleanWhether to clear an authenticator inherited from service defaults.clearInheritedAuthenticator(boolean clearInheritedAuthenticator) Whether to clear an authenticator inherited from service defaults.booleanWhether to clear an authorizer inherited from service defaults.clearInheritedAuthorizer(boolean clearInheritedAuthorizer) Whether to clear an authorizer inherited from service defaults.booleanWhether to clear roles inherited from service defaults.clearInheritedRolesAllowed(boolean clearInheritedRolesAllowed) Whether to clear roles inherited from service defaults.Clear all rolesAllowed.Clear all securityLevels.config()Configuration associated with this security handler.Update builder from configuration (node of this type).A store of custom objects, that can be used to customize specific security providers.customObjects(ClassToInstanceStore<Object> customObjects) A store of custom objects, that can be used to customize specific security providers.from(GrpcSecurityHandlerConfig prototype) Update this builder from an existing prototype instance.from(GrpcSecurityHandlerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.An array of allowed roles for this gRPC method.rolesAllowed(Set<String> rolesAllowed) An array of allowed roles for this gRPC method.Security levels discovered from endpoint annotations.securityLevels(List<? extends SecurityLevel> securityLevels) Security levels discovered from endpoint annotations.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault GrpcSecurityHandlerget()identity()Instance of this builder as the correct type.update(Consumer<GrpcSecurityHandlerConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandler>- Returns:
- instance of the built type
-