-
public interface BinderTransportSecurity.ServerPolicyChecker
Decides whether a given Android UID is authorized to access some resource.
This class provides the asynchronous version of io.grpc.binder.SecurityPolicy,allowing implementations of authorization logic that involves slow or asynchronous callswithout necessarily blocking the calling thread.
-
-
Method Summary
Modifier and Type Method Description abstract ListenableFuture<Status>
checkAuthorizationForServiceAsync(int uid, String serviceName)
Returns whether the given Android UID is authorized to access a particular service. -
-
Method Detail
-
checkAuthorizationForServiceAsync
abstract ListenableFuture<Status> checkAuthorizationForServiceAsync(int uid, String serviceName)
Returns whether the given Android UID is authorized to access a particular service.
This method never throws an exception. If the execution of the security policy checkfails, a failed future with such exception is returned.
- Parameters:
uid
- The Android UID to authenticate.serviceName
- The name of the gRPC service being called.
-
-
-
-