public class GrpcTlsConfig extends TlsConf
TlsConf.Builder, TlsConf.CertificatesConf, TlsConf.KeyManagerConf, TlsConf.PrivateKeyConf, TlsConf.TrustManagerConf| 构造器和说明 |
|---|
GrpcTlsConfig(File privateKeyFile,
File certChainFile,
File trustStoreFile,
boolean mTlsEnabled) |
GrpcTlsConfig(KeyManager keyManager,
TrustManager trustManager,
boolean mTlsEnabled) |
GrpcTlsConfig(PrivateKey privateKey,
X509Certificate certChain,
List<X509Certificate> trustStore,
boolean mTlsEnabled) |
GrpcTlsConfig(PrivateKey privateKey,
X509Certificate certChain,
X509Certificate trustStore,
boolean mTlsEnabled) |
| 限定符和类型 | 方法和说明 |
|---|---|
X509Certificate |
getCertChain() |
File |
getCertChainFile() |
boolean |
getMtlsEnabled() |
PrivateKey |
getPrivateKey() |
File |
getPrivateKeyFile() |
List<X509Certificate> |
getTrustStore() |
File |
getTrustStoreFile() |
boolean |
isFileBasedConfig() |
getKeyManager, getTrustManager, isMutualTls, newBuilder, toStringpublic GrpcTlsConfig(PrivateKey privateKey, X509Certificate certChain, List<X509Certificate> trustStore, boolean mTlsEnabled)
public GrpcTlsConfig(PrivateKey privateKey, X509Certificate certChain, X509Certificate trustStore, boolean mTlsEnabled)
public GrpcTlsConfig(File privateKeyFile, File certChainFile, File trustStoreFile, boolean mTlsEnabled)
public GrpcTlsConfig(KeyManager keyManager, TrustManager trustManager, boolean mTlsEnabled)
public boolean isFileBasedConfig()
public PrivateKey getPrivateKey()
public File getPrivateKeyFile()
public X509Certificate getCertChain()
public File getCertChainFile()
public List<X509Certificate> getTrustStore()
public File getTrustStoreFile()
public boolean getMtlsEnabled()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.