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.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(GrpcSecurityHandlerConfig instance) Create a new fluent API builder from an existing instance.default booleanWhether to clear an authenticator inherited from service defaults.default booleanWhether to clear an authorizer inherited from service defaults.default booleanWhether to clear roles inherited from service defaults.config()Configuration associated with this security handler.static GrpcSecurityHandlerConfigcreate()Create a new instance with default values.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.default List<SecurityLevel> Security levels discovered from endpoint annotations.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
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
Create a new instance with default values.- Returns:
- a new instance
-
rolesAllowed
-
clearInheritedRolesAllowed
default boolean clearInheritedRolesAllowed()Whether to clear roles inherited from service defaults.- Returns:
- whether to clear inherited roles
-
securityLevels
Security levels discovered from endpoint annotations.- Returns:
- security levels
-
authenticator
-
clearInheritedAuthenticator
default boolean clearInheritedAuthenticator()Whether to clear an authenticator inherited from service defaults.- Returns:
- whether to clear the inherited authenticator
-
authorizer
-
clearInheritedAuthorizer
default boolean clearInheritedAuthorizer()Whether to clear an authorizer inherited from service defaults.- Returns:
- whether to clear the inherited 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
-