public class KeytoolUtil extends Object
| 构造器和说明 |
|---|
KeytoolUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static KeyStore |
getKeyStore(String type,
String jksFilePath,
String jkdPassword)
获取 KeyStore
|
static SSLContext |
getSSLContext(String type,
KeyStore keyStore,
char[] password)
获取 SSLContext
|
public static KeyStore getKeyStore(String type, String jksFilePath, String jkdPassword)
type - 为空,则使用默认值, 如:JKSjksFilePath - 文件路径jkdPassword - 密码public static SSLContext getSSLContext(String type, KeyStore keyStore, char[] password)
type - 如:TLSkeyStore - KeyStorepassword - KeyStore 密码Copyright © 2023. All rights reserved.