Package 

Interface BinderTransportSecurity.ServerPolicyChecker

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.