Package 

Class ServerSecurityPolicy


  • 
    public final class ServerSecurityPolicy
    
                        

    A security policy for a gRPC server.

    Contains a default policy, and optional policies for each server.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class ServerSecurityPolicy.Builder

      Builder for an AndroidServiceSecurityPolicy.

    • Method Summary

      Modifier and Type Method Description
      Status checkAuthorizationForService(int uid, String serviceName) Returns whether the given Android UID is authorized to access a particular service.
      static ServerSecurityPolicy.Builder newBuilder()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkAuthorizationForService

        @CheckReturnValue()@Deprecated() Status checkAuthorizationForService(int uid, String serviceName)

        Returns whether the given Android UID is authorized to access a particular service.

        IMPORTANT: This method may block for extended periods of time.

        Parameters:
        uid - The Android UID to authenticate.
        serviceName - The name of the gRPC service being called.