Class BoringSSLKeylessManagerFactory


  • public final class BoringSSLKeylessManagerFactory
    extends javax.net.ssl.KeyManagerFactory
    KeyManagerFactory that can be used to support custom key signing via BoringSSLAsyncPrivateKeyMethod.
    • Method Detail

      • newKeyless

        public static BoringSSLKeylessManagerFactory newKeyless​(BoringSSLAsyncPrivateKeyMethod privateKeyMethod,
                                                                java.io.File chain)
                                                         throws java.security.cert.CertificateException,
                                                                java.io.IOException,
                                                                java.security.KeyStoreException,
                                                                java.security.NoSuchAlgorithmException,
                                                                java.security.UnrecoverableKeyException
        Creates a new factory instance.
        Parameters:
        privateKeyMethod - the BoringSSLAsyncPrivateKeyMethod that is used for key signing.
        chain - the File that contains the X509Certificate chain.
        Returns:
        a new factory instance.
        Throws:
        java.security.cert.CertificateException - on error.
        java.io.IOException - on error.
        java.security.KeyStoreException - on error.
        java.security.NoSuchAlgorithmException - on error.
        java.security.UnrecoverableKeyException - on error.
      • newKeyless

        public static BoringSSLKeylessManagerFactory newKeyless​(BoringSSLAsyncPrivateKeyMethod privateKeyMethod,
                                                                java.io.InputStream chain)
                                                         throws java.security.cert.CertificateException,
                                                                java.io.IOException,
                                                                java.security.KeyStoreException,
                                                                java.security.NoSuchAlgorithmException,
                                                                java.security.UnrecoverableKeyException
        Creates a new factory instance.
        Parameters:
        privateKeyMethod - the BoringSSLAsyncPrivateKeyMethod that is used for key signing.
        chain - the InputStream that contains the X509Certificate chain.
        Returns:
        a new factory instance.
        Throws:
        java.security.cert.CertificateException - on error.
        java.io.IOException - on error.
        java.security.KeyStoreException - on error.
        java.security.NoSuchAlgorithmException - on error.
        java.security.UnrecoverableKeyException - on error.
      • newKeyless

        public static BoringSSLKeylessManagerFactory newKeyless​(BoringSSLAsyncPrivateKeyMethod privateKeyMethod,
                                                                java.security.cert.X509Certificate... certificateChain)
                                                         throws java.security.cert.CertificateException,
                                                                java.io.IOException,
                                                                java.security.KeyStoreException,
                                                                java.security.NoSuchAlgorithmException,
                                                                java.security.UnrecoverableKeyException
        Creates a new factory instance.
        Parameters:
        privateKeyMethod - the BoringSSLAsyncPrivateKeyMethod that is used for key signing.
        certificateChain - the X509Certificate chain.
        Returns:
        a new factory instance.
        Throws:
        java.security.cert.CertificateException - on error.
        java.io.IOException - on error.
        java.security.KeyStoreException - on error.
        java.security.NoSuchAlgorithmException - on error.
        java.security.UnrecoverableKeyException - on error.