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 io.helidon.webserver.grpc.security.GrpcSecurityHandlerConfig
GrpcSecurityHandlerConfig.Builder, GrpcSecurityHandlerConfig.BuilderBase<BUILDER extends GrpcSecurityHandlerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends GrpcSecurityHandlerConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
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.build()Create a new instance of the runtime type from this config object.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.toString()
-
Constructor Details
-
GrpcSecurityHandlerConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- 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
-
authenticator
Description copied from interface:GrpcSecurityHandlerConfigUse a named authenticator.- Specified by:
authenticatorin interfaceGrpcSecurityHandlerConfig- Returns:
- name of authenticator as configured in
Security
-
authorizer
Description copied from interface:GrpcSecurityHandlerConfigUse a named authorizer.- Specified by:
authorizerin interfaceGrpcSecurityHandlerConfig- Returns:
- name of authorizer as configured in
Security
-
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
-
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
public int hashCode()
-