Class BoringSSLKeylessManagerFactory
java.lang.Object
javax.net.ssl.KeyManagerFactory
io.netty.handler.codec.quic.BoringSSLKeylessManagerFactory
KeyManagerFactory that can be used to support custom key signing via BoringSSLAsyncPrivateKeyMethod.-
Method Summary
Modifier and TypeMethodDescriptionnewKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, File chain) Creates a new factory instance.newKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, InputStream chain) Creates a new factory instance.newKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, X509Certificate... certificateChain) Creates a new factory instance.Methods inherited from class KeyManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, init
-
Method Details
-
newKeyless
public static BoringSSLKeylessManagerFactory newKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, File chain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException Creates a new factory instance.- Parameters:
privateKeyMethod- theBoringSSLAsyncPrivateKeyMethodthat is used for key signing.chain- theFilethat contains theX509Certificatechain.- Returns:
- a new factory instance.
- Throws:
CertificateException- on error.IOException- on error.KeyStoreException- on error.NoSuchAlgorithmException- on error.UnrecoverableKeyException- on error.
-
newKeyless
public static BoringSSLKeylessManagerFactory newKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, InputStream chain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException Creates a new factory instance.- Parameters:
privateKeyMethod- theBoringSSLAsyncPrivateKeyMethodthat is used for key signing.chain- theInputStreamthat contains theX509Certificatechain.- Returns:
- a new factory instance.
- Throws:
CertificateException- on error.IOException- on error.KeyStoreException- on error.NoSuchAlgorithmException- on error.UnrecoverableKeyException- on error.
-
newKeyless
public static BoringSSLKeylessManagerFactory newKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, X509Certificate... certificateChain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException Creates a new factory instance.- Parameters:
privateKeyMethod- theBoringSSLAsyncPrivateKeyMethodthat is used for key signing.certificateChain- theX509Certificatechain.- Returns:
- a new factory instance.
- Throws:
CertificateException- on error.IOException- on error.KeyStoreException- on error.NoSuchAlgorithmException- on error.UnrecoverableKeyException- on error.
-