Package io.deephaven.auth.codegen.impl
Interface ConfigServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>
- All Known Implementing Classes:
ConfigServiceAuthWiring.AllowAll,ConfigServiceAuthWiring.DenyAll,ConfigServiceAuthWiring.TestUseOnly
public interface ConfigServiceAuthWiring
extends ServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>
This interface provides type-safe authorization hooks for ConfigServiceGrpc.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface io.deephaven.auth.ServiceAuthWiring
ServiceAuthWiring.AuthorizingServerCallHandler<ReqT,RespT>, ServiceAuthWiring.CallStartedCallback, ServiceAuthWiring.MessageReceivedCallback<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault io.grpc.ServerServiceDefinitionWrap the real implementation with authorization checks.voidonMessageReceivedGetAuthenticationConstants(AuthContext authContext, AuthenticationConstantsRequest request) Authorize a request to GetAuthenticationConstants.voidonMessageReceivedGetConfigurationConstants(AuthContext authContext, ConfigurationConstantsRequest request) Authorize a request to GetConfigurationConstants.
-
Method Details
-
intercept
Wrap the real implementation with authorization checks.- Specified by:
interceptin interfaceServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>- Parameters:
delegate- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedGetAuthenticationConstants
void onMessageReceivedGetAuthenticationConstants(AuthContext authContext, AuthenticationConstantsRequest request) Authorize a request to GetAuthenticationConstants.- Parameters:
authContext- the authentication context of the requestrequest- the request to authorize- Throws:
io.grpc.StatusRuntimeException- if the user is not authorized to invoke GetAuthenticationConstants
-
onMessageReceivedGetConfigurationConstants
void onMessageReceivedGetConfigurationConstants(AuthContext authContext, ConfigurationConstantsRequest request) Authorize a request to GetConfigurationConstants.- Parameters:
authContext- the authentication context of the requestrequest- the request to authorize- Throws:
io.grpc.StatusRuntimeException- if the user is not authorized to invoke GetConfigurationConstants
-