Package io.netty.handler.codec.quic
Class BoringSSLKeylessManagerFactory
- java.lang.Object
-
- javax.net.ssl.KeyManagerFactory
-
- io.netty.handler.codec.quic.BoringSSLKeylessManagerFactory
-
public final class BoringSSLKeylessManagerFactory extends KeyManagerFactory
KeyManagerFactorythat can be used to support custom key signing viaBoringSSLAsyncPrivateKeyMethod.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoringSSLKeylessManagerFactorynewKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, File chain)Creates a new factory instance.static BoringSSLKeylessManagerFactorynewKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, InputStream chain)Creates a new factory instance.static BoringSSLKeylessManagerFactorynewKeyless(BoringSSLAsyncPrivateKeyMethod privateKeyMethod, X509Certificate... certificateChain)Creates a new factory instance.-
Methods inherited from class javax.net.ssl.KeyManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, init
-
-
-
-
Method Detail
-
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.
-
-