Class GrpcUtils


  • public final class GrpcUtils
    extends java.lang.Object
    • Constructor Detail

      • GrpcUtils

        public GrpcUtils()
    • 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