@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/7864") public final class AltsContextUtil extends Object
AltsContext.| Modifier and Type | Method and Description |
|---|---|
static boolean |
check(io.grpc.ServerCall<?,?> call)
Checks if the
ServerCall contains ALTS information. |
static AltsContext |
createFrom(io.grpc.ServerCall<?,?> call)
Creates a
AltsContext from ALTS context information in the ServerCall. |
public static AltsContext createFrom(io.grpc.ServerCall<?,?> call)
AltsContext from ALTS context information in the ServerCall.call - the ServerCall containing the ALTS informationAltsContextIllegalArgumentException - if the ServerCall has no ALTS information.public static boolean check(io.grpc.ServerCall<?,?> call)
ServerCall contains ALTS information.call - the ServerCall to checkServerCall contains ALTS information and false otherwise.