Class GrpcSecurityHandlerConfig.BuilderBase.GrpcSecurityHandlerConfigImpl
java.lang.Object
io.helidon.webserver.grpc.security.GrpcSecurityHandlerConfig.BuilderBase.GrpcSecurityHandlerConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<GrpcSecurityHandler>, GrpcSecurityHandlerConfig, Supplier<GrpcSecurityHandler>
- Enclosing class:
GrpcSecurityHandlerConfig.BuilderBase<BUILDER extends GrpcSecurityHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcSecurityHandlerConfig>
protected static class GrpcSecurityHandlerConfig.BuilderBase.GrpcSecurityHandlerConfigImpl
extends Object
implements GrpcSecurityHandlerConfig, Supplier<GrpcSecurityHandler>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GrpcSecurityHandlerConfig
GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forGrpcSecurityHandler.static classGrpcSecurityHandlerConfig.BuilderBase<BUILDER extends GrpcSecurityHandlerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcSecurityHandlerConfig>Fluent API builder base forGrpcSecurityHandlerConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionaudit()Whether to audit this request.Severity to use for failed requests.Override for audit event type.Override for audit message format.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.build()Create a new runtime instance from this prototype.booleanWhether to clear an authenticator inherited from service defaults.booleanWhether to clear an authorizer inherited from service defaults.booleanWhether to clear roles inherited from service defaults.config()Configuration associated with this security handler.A store of custom objects, that can be used to customize specific security providers.booleanget()inthashCode()An array of allowed roles for this gRPC method.Security levels discovered from endpoint annotations.toString()
-
Constructor Details
-
GrpcSecurityHandlerConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<GrpcSecurityHandler>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<GrpcSecurityHandler>
-
rolesAllowed
Description copied from interface:GrpcSecurityHandlerConfigAn array of allowed roles for this gRPC method.- Specified by:
rolesAllowedin interfaceGrpcSecurityHandlerConfig- Returns:
- if subject is any of these roles, allow access
-
clearInheritedRolesAllowed
public boolean clearInheritedRolesAllowed()Description copied from interface:GrpcSecurityHandlerConfigWhether to clear roles inherited from service defaults.- Specified by:
clearInheritedRolesAllowedin interfaceGrpcSecurityHandlerConfig- Returns:
- whether to clear inherited roles
-
securityLevels
Description copied from interface:GrpcSecurityHandlerConfigSecurity levels discovered from endpoint annotations.- Specified by:
securityLevelsin interfaceGrpcSecurityHandlerConfig- Returns:
- security levels
-
authenticator
Description copied from interface:GrpcSecurityHandlerConfigUse a named authenticator.- Specified by:
authenticatorin interfaceGrpcSecurityHandlerConfig- Returns:
- name of authenticator as configured in
Security
-
clearInheritedAuthenticator
public boolean clearInheritedAuthenticator()Description copied from interface:GrpcSecurityHandlerConfigWhether to clear an authenticator inherited from service defaults.- Specified by:
clearInheritedAuthenticatorin interfaceGrpcSecurityHandlerConfig- Returns:
- whether to clear the inherited authenticator
-
authorizer
Description copied from interface:GrpcSecurityHandlerConfigUse a named authorizer.- Specified by:
authorizerin interfaceGrpcSecurityHandlerConfig- Returns:
- name of authorizer as configured in
Security
-
clearInheritedAuthorizer
public boolean clearInheritedAuthorizer()Description copied from interface:GrpcSecurityHandlerConfigWhether to clear an authorizer inherited from service defaults.- Specified by:
clearInheritedAuthorizerin interfaceGrpcSecurityHandlerConfig- Returns:
- whether to clear the inherited authorizer
-
authenticate
Description copied from interface:GrpcSecurityHandlerConfigWhether to authenticate this request.- Specified by:
authenticatein interfaceGrpcSecurityHandlerConfig- Returns:
- whether to authenticate
-
authenticationOptional
Description copied from interface:GrpcSecurityHandlerConfigWhether authentication failure should continue as anonymous.- Specified by:
authenticationOptionalin interfaceGrpcSecurityHandlerConfig- Returns:
- whether authentication is optional
-
audit
Description copied from interface:GrpcSecurityHandlerConfigWhether to audit this request.- Specified by:
auditin interfaceGrpcSecurityHandlerConfig- Returns:
- whether to audit
-
authorize
Description copied from interface:GrpcSecurityHandlerConfigWhether to authorize this request.- Specified by:
authorizein interfaceGrpcSecurityHandlerConfig- Returns:
- whether to authorize
-
auditEventType
Description copied from interface:GrpcSecurityHandlerConfigOverride for audit event type.- Specified by:
auditEventTypein interfaceGrpcSecurityHandlerConfig- Returns:
- audit event type
-
auditMessageFormat
Description copied from interface:GrpcSecurityHandlerConfigOverride for audit message format.- Specified by:
auditMessageFormatin interfaceGrpcSecurityHandlerConfig- Returns:
- audit message format
-
auditOkSeverity
Description copied from interface:GrpcSecurityHandlerConfigSeverity to use for successful requests.- Specified by:
auditOkSeverityin interfaceGrpcSecurityHandlerConfig- Returns:
- successful request audit severity
-
auditErrorSeverity
Description copied from interface:GrpcSecurityHandlerConfigSeverity to use for failed requests.- Specified by:
auditErrorSeverityin interfaceGrpcSecurityHandlerConfig- Returns:
- failed request audit severity
-
customObjects
Description copied from interface:GrpcSecurityHandlerConfigA store of custom objects, that can be used to customize specific security providers.- Specified by:
customObjectsin interfaceGrpcSecurityHandlerConfig- Returns:
- custom objects
-
config
Description copied from interface:GrpcSecurityHandlerConfigConfiguration associated with this security handler.- Specified by:
configin interfaceGrpcSecurityHandlerConfig- Returns:
- the configuration
-
toString
-
equals
-
hashCode
-