Class GrpcSecurityMethodConfig.Builder
java.lang.Object
io.helidon.webserver.grpc.security.GrpcSecurityMethodConfig.BuilderBase<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>
io.helidon.webserver.grpc.security.GrpcSecurityMethodConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>, Builder<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>, ConfigBuilderSupport.ConfiguredBuilder<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>, Supplier<GrpcSecurityMethodConfig>
- Enclosing interface:
GrpcSecurityMethodConfig
public static class GrpcSecurityMethodConfig.Builder
extends GrpcSecurityMethodConfig.BuilderBase<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>
implements Builder<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>
Fluent API builder for
GrpcSecurityMethodConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class GrpcSecurityMethodConfig.BuilderBase
GrpcSecurityMethodConfig.BuilderBase.GrpcSecurityMethodConfigImplModifier 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 GrpcSecurityMethodConfig.BuilderBase
addObject, addObject, addRoleAllowed, addRolesAllowed, 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, clearRolesAllowed, config, config, customObjects, customObjects, from, from, name, name, preBuildPrototype, rolesAllowed, rolesAllowed, 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.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.Clear all rolesAllowed.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(GrpcSecurityMethodConfig prototype) Update this builder from an existing prototype instance.from(GrpcSecurityMethodConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Bare gRPC method name such asUpper, not the full gRPC method path such asStringService/Upper.Bare gRPC method name such asUpper, not the full gRPC method path such asStringService/Upper.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.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 GrpcSecurityMethodConfigget()default GrpcSecurityMethodConfig.Builderidentity()Instance of this builder as the correct type.default GrpcSecurityMethodConfig.Builderupdate(Consumer<GrpcSecurityMethodConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault GrpcSecurityMethodConfig.Builderself()Instance of this builder as the correct type.
-
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<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>- 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<GrpcSecurityMethodConfig.Builder, GrpcSecurityMethodConfig>- Returns:
- instance of the built type
-