Package io.grpc.alts

Class AuthorizationUtil


  • public final class AuthorizationUtil
    extends java.lang.Object
    Utility class for ALTS client authorization.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AuthorizationUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.grpc.Status clientAuthorizationCheck​(io.grpc.ServerCall<?,​?> call, java.util.Collection<java.lang.String> expectedServiceAccounts)
      Given a server call, performs client authorization check, i.e., checks if the client service account matches one of the expected service accounts.
      • Methods inherited from class java.lang.Object

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

      • AuthorizationUtil

        private AuthorizationUtil()
    • Method Detail

      • clientAuthorizationCheck

        public static io.grpc.Status clientAuthorizationCheck​(io.grpc.ServerCall<?,​?> call,
                                                              java.util.Collection<java.lang.String> expectedServiceAccounts)
        Given a server call, performs client authorization check, i.e., checks if the client service account matches one of the expected service accounts. It returns OK if client is authorized and an error otherwise.