public class GrpcService extends Object
Constructor and Description |
---|
GrpcService(io.grpc.BindableService bindableService)
Creates a new
GrpcService . |
GrpcService(io.grpc.ServerServiceDefinition serviceDefinition)
Creates a new
GrpcService . |
Modifier and Type | Method and Description |
---|---|
GrpcService |
disableAuthentication()
If called, clients can access this service's methods without authentication.
|
io.grpc.ServerServiceDefinition |
getServiceDefinition() |
boolean |
isAuthenticated() |
public GrpcService(io.grpc.BindableService bindableService)
GrpcService
.bindableService
- gRPC bindable servicepublic GrpcService(io.grpc.ServerServiceDefinition serviceDefinition)
GrpcService
.serviceDefinition
- gRPC service definitionpublic GrpcService disableAuthentication()
GrpcService
instancepublic boolean isAuthenticated()
true
if this service should be accessed with authenticationpublic io.grpc.ServerServiceDefinition getServiceDefinition()
ServerServiceDefinition
Copyright © 2023. All Rights Reserved.