Package com.linkedin.venice.grpc
Class GrpcUtils
- java.lang.Object
-
- com.linkedin.venice.grpc.GrpcUtils
-
public final class GrpcUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GrpcUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.grpc.Status
accessResultToGrpcStatus(AccessResult accessResult)
static java.security.cert.X509Certificate
extractGrpcClientCert(io.grpc.ServerCall<?,?> call)
static javax.net.ssl.KeyManager[]
getKeyManagers(SSLFactory sslFactory)
static javax.net.ssl.TrustManager[]
getTrustManagers(SSLFactory sslFactory)
-
-
-
Method Detail
-
getKeyManagers
public static javax.net.ssl.KeyManager[] getKeyManagers(SSLFactory sslFactory) throws java.security.UnrecoverableKeyException, java.security.cert.CertificateException, java.security.KeyStoreException, java.io.IOException, java.security.NoSuchAlgorithmException
- Throws:
java.security.UnrecoverableKeyException
java.security.cert.CertificateException
java.security.KeyStoreException
java.io.IOException
java.security.NoSuchAlgorithmException
-
getTrustManagers
public static javax.net.ssl.TrustManager[] getTrustManagers(SSLFactory sslFactory) throws java.security.cert.CertificateException, java.security.KeyStoreException, java.io.IOException, java.security.NoSuchAlgorithmException
- Throws:
java.security.cert.CertificateException
java.security.KeyStoreException
java.io.IOException
java.security.NoSuchAlgorithmException
-
accessResultToGrpcStatus
public static io.grpc.Status accessResultToGrpcStatus(AccessResult accessResult)
-
extractGrpcClientCert
public static java.security.cert.X509Certificate extractGrpcClientCert(io.grpc.ServerCall<?,?> call) throws javax.net.ssl.SSLPeerUnverifiedException
- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
-