Interface GrpcSecurityMethodConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
GrpcSecurityMethodConfig.BuilderBase.GrpcSecurityMethodConfigImpl
Configuration of gRPC method security.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forGrpcSecurityMethodConfig.static classGrpcSecurityMethodConfig.BuilderBase<BUILDER extends GrpcSecurityMethodConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcSecurityMethodConfig>Fluent API builder base forGrpcSecurityMethodConfig. -
Method Summary
Modifier and TypeMethodDescriptionaudit()Whether to audit this request.default Optional<AuditEvent.AuditSeverity> Severity to use for failed requests.Override for audit event type.Override for audit message format.default Optional<AuditEvent.AuditSeverity> Severity to use for successful requests.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(GrpcSecurityMethodConfig instance) Create a new fluent API builder from an existing instance.config()Configuration associated with this security handler.static GrpcSecurityMethodConfigCreate a new instance from configuration.A store of custom objects, that can be used to customize specific security providers.name()Bare gRPC method name such asUpper, not the full gRPC method path such asStringService/Upper.An array of allowed roles for this gRPC method.
-
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
-
name
String name()Bare gRPC method name such asUpper, not the full gRPC method path such asStringService/Upper.- Returns:
- gRPC method name
-
rolesAllowed
-
authenticator
-
authorizer
-
authenticate
-
authenticationOptional
-
audit
-
authorize
-
auditEventType
-
auditMessageFormat
-
auditOkSeverity
Severity to use for successful requests.- Returns:
- successful request audit severity
-
auditErrorSeverity
Severity to use for failed requests.- Returns:
- failed request audit severity
-
customObjects
Optional<ClassToInstanceStore<Object>> customObjects()A store of custom objects, that can be used to customize specific security providers.- Returns:
- custom objects
-
config
-