public final class BinderTransportSecurity
extends java.lang.Object
Attaches authorization state to a newly-created transport, and contains a ServerInterceptor which ensures calls are authorized before allowing them to proceed.
| Modifier and Type | Method and Description |
|---|---|
static void |
attachAuthAttrs(io.grpc.Attributes.Builder builder,
int remoteUid,
ServerSecurityPolicy securityPolicy)
Attach the given security policy to the transport attributes being built.
|
static void |
installAuthInterceptor(io.grpc.ServerBuilder<?> serverBuilder)
Install a security policy on an about-to-be created server.
|
@Internal public static void installAuthInterceptor(io.grpc.ServerBuilder<?> serverBuilder)
serverBuilder - The ServerBuilder being used to create the server.@Internal
public static void attachAuthAttrs(io.grpc.Attributes.Builder builder,
int remoteUid,
ServerSecurityPolicy securityPolicy)
builder - The Attributes.Builder for the transport being created.remoteUid - The remote UID of the transport.securityPolicy - The policy to enforce on this transport.