| Package | Description |
|---|---|
| org.tio.core.ssl |
| Modifier and Type | Method and Description |
|---|---|
static SslCertType |
SslCertType.from(String fileName)
根据文件名判断证书类型
|
static SslCertType |
SslCertType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SslCertType[] |
SslCertType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static SslConfig |
SslConfig.forClient(SslCertType certType,
InputStream keyStoreInputStream,
String keyPasswd,
InputStream trustStoreInputStream,
String trustPassword)
给客户端用的
|
static SslConfig |
SslConfig.forServer(SslCertType certType,
InputStream keyStoreInputStream,
String keyPasswd)
给服务器用的
|
static SslConfig |
SslConfig.forServer(SslCertType certType,
InputStream keyStoreInputStream,
String keyPasswd,
ClientAuth clientAuth)
给服务器用的
|
static SslConfig |
SslConfig.forServer(SslCertType certType,
InputStream keyStoreInputStream,
String keyPasswd,
InputStream trustStoreInputStream,
String trustPassword,
ClientAuth clientAuth)
给服务器用的
|
static KeyManager[] |
SslConfig.getKeyManager(SslCertType certType,
InputStream keyStoreInputStream,
String keyPass) |
static TrustManager[] |
SslConfig.getTrustManager(SslCertType certType,
InputStream trustInputStream,
String trustPass) |
Copyright © 2025. All rights reserved.