Package com.linkedin.venice.grpc
Class GrpcUtils
java.lang.Object
com.linkedin.venice.grpc.GrpcUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.grpc.Status
accessResultToGrpcStatus
(AccessResult accessResult) static io.grpc.ChannelCredentials
buildChannelCredentials
(SSLFactory sslFactory) static X509Certificate
extractGrpcClientCert
(io.grpc.ServerCall<?, ?> call) static KeyManager[]
getKeyManagers
(SSLFactory sslFactory) static TrustManager[]
getTrustManagers
(SSLFactory sslFactory)
-
Constructor Details
-
GrpcUtils
public GrpcUtils()
-
-
Method Details
-
getKeyManagers
public static KeyManager[] getKeyManagers(SSLFactory sslFactory) throws UnrecoverableKeyException, CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException -
getTrustManagers
public static TrustManager[] getTrustManagers(SSLFactory sslFactory) throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException -
accessResultToGrpcStatus
-
extractGrpcClientCert
public static X509Certificate extractGrpcClientCert(io.grpc.ServerCall<?, ?> call) throws SSLPeerUnverifiedException- Throws:
SSLPeerUnverifiedException
-
buildChannelCredentials
-