Package io.grpc.alts
Class AuthorizationUtil
java.lang.Object
io.grpc.alts.AuthorizationUtil
Utility class for ALTS client authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.grpc.Status
clientAuthorizationCheck
(io.grpc.ServerCall<?, ?> call, Collection<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.
-
Constructor Details
-
AuthorizationUtil
private AuthorizationUtil()
-
-
Method Details
-
clientAuthorizationCheck
public static io.grpc.Status clientAuthorizationCheck(io.grpc.ServerCall<?, ?> call, Collection<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.
-