public class NettyServerSslUtil extends Object
| 构造器和说明 |
|---|
NettyServerSslUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static io.netty.handler.ssl.SslHandler |
BuildClientSslHandler(SSLContext sslContext,
String host,
int port) |
static io.netty.handler.ssl.SslHandler |
BuildServerSslHandler(SSLContext sslContext) |
static io.netty.handler.ssl.SslContext |
buildSslContext_JKS(InputStream keyStore,
String password) |
static io.netty.handler.ssl.SslContext |
buildSslContext_P12_Pfx(InputStream keyStore,
String password) |
static io.netty.handler.ssl.SslContext |
buildSslContext(InputStream keyStore,
String password,
String keyStoreType,
String algorithm) |
static SSLContext |
createSSLContext_JKS(InputStream keyStore,
String password) |
static SSLContext |
createSSLContext(String keyStoreType,
InputStream keyStore,
String password) |
static KeyManagerFactory |
getKeyKeyManagerFactory(InputStream keyStore,
String password,
String algorithm,
String keyStoreType) |
static KeyManagerFactory |
getKeyKeyManagerFactoryByPfx(InputStream keyStore,
String password) |
static void |
printPfxInfo(InputStream pfx,
String strPassword) |
public static KeyManagerFactory getKeyKeyManagerFactoryByPfx(InputStream keyStore, String password) throws Exception
Exceptionpublic static KeyManagerFactory getKeyKeyManagerFactory(InputStream keyStore, String password, String algorithm, String keyStoreType) throws Exception
Exceptionpublic static io.netty.handler.ssl.SslContext buildSslContext(InputStream keyStore, String password, String keyStoreType, String algorithm) throws Exception
Exceptionpublic static io.netty.handler.ssl.SslContext buildSslContext_P12_Pfx(InputStream keyStore, String password) throws Exception
Exceptionpublic static io.netty.handler.ssl.SslContext buildSslContext_JKS(InputStream keyStore, String password) throws Exception
Exceptionpublic static SSLContext createSSLContext(String keyStoreType, InputStream keyStore, String password) throws Exception
keyStoreType - PKCS12 or JKSkeyStore - password - Exceptionpublic static SSLContext createSSLContext_JKS(InputStream keyStore, String password) throws Exception
Exceptionpublic static io.netty.handler.ssl.SslHandler BuildServerSslHandler(SSLContext sslContext)
public static io.netty.handler.ssl.SslHandler BuildClientSslHandler(SSLContext sslContext, String host, int port)
public static void printPfxInfo(InputStream pfx, String strPassword)
Copyright © 2020. All rights reserved.