@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/8022")
public final class ServerSecurityPolicy
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerSecurityPolicy.Builder
Builder for an AndroidServiceSecurityPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
io.grpc.Status |
checkAuthorizationForService(int uid,
java.lang.String serviceName)
Return whether the given Android UID is authorized to access a particular service.
|
static ServerSecurityPolicy.Builder |
newBuilder() |
@CheckReturnValue
public io.grpc.Status checkAuthorizationForService(int uid,
java.lang.String serviceName)
uid - The Android UID to authenticate.serviceName - The name of the gRPC service being called.public static ServerSecurityPolicy.Builder newBuilder()