Interface GrpcSecurityHandlerConfig
- All Superinterfaces:
Prototype.Api,Prototype.Factory<GrpcSecurityHandler>
- All Known Implementing Classes:
GrpcSecurityHandlerConfig.BuilderBase.GrpcSecurityHandlerConfigImpl
Configuration of a
GrpcSecurityHandler.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forGrpcSecurityHandler.static classGrpcSecurityHandlerConfig.BuilderBase<BUILDER extends GrpcSecurityHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends GrpcSecurityHandlerConfig> Fluent API builder base forGrpcSecurityHandlerConfig. -
Method Summary
Modifier and TypeMethodDescriptionaudit()Whether to audit this request.Override for audit event type.Override for audit message format.Whether to authenticate this request.Whether authentication failure should continue as anonymous.Use a named authenticator.Whether to authorize this request.Use a named authorizer.builder()Create a new fluent API builder to customize configuration.builder(GrpcSecurityHandlerConfig instance) Create a new fluent API builder from an existing instance.config()Configuration associated with this security handler.static GrpcSecurityHandlerConfigcreate()Create a new instance with default values.static GrpcSecurityHandlerConfigDeprecated.static GrpcSecurityHandlerConfigCreate a new instance from configuration.A store of custom objects, that can be used to customize specific security providers.An array of allowed roles for this gRPC method.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
rolesAllowed
An array of allowed roles for this gRPC method.- Returns:
- if subject is any of these roles, allow access
-
authenticator
Use a named authenticator.- Returns:
- name of authenticator as configured in
Security
-
authorizer
Use a named authorizer.- Returns:
- name of authorizer as configured in
Security
-
authenticate
Whether to authenticate this request.- Returns:
- whether to authenticate
-
authenticationOptional
Whether authentication failure should continue as anonymous.- Returns:
- whether authentication is optional
-
audit
Whether to audit this request.- Returns:
- whether to audit
-
authorize
Whether to authorize this request.- Returns:
- whether to authorize
-
auditEventType
Override for audit event type.- Returns:
- audit event type
-
auditMessageFormat
Override for audit message format.- Returns:
- audit message format
-
customObjects
Optional<ClassToInstanceStore<Object>> customObjects()A store of custom objects, that can be used to customize specific security providers.- Returns:
- custom objects
-
config
Configuration associated with this security handler.- Returns:
- the configuration
-
create(io.helidon.config.Config)