public class CBLKeyManager extends Object implements X509KeyManager
Constructor and Description |
---|
CBLKeyManager(TLSIdentity identity) |
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) |
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] issuers) |
public CBLKeyManager(@NonNull TLSIdentity identity)
@NonNull public String[] getClientAliases(@NonNull String keyType, @NonNull Principal[] issuers)
getClientAliases
in interface X509KeyManager
@NonNull public String chooseClientAlias(@NonNull String[] keyType, @NonNull Principal[] issuers, @NonNull Socket socket)
chooseClientAlias
in interface X509KeyManager
@NonNull public String[] getServerAliases(@NonNull String keyType, @NonNull Principal[] issuers)
getServerAliases
in interface X509KeyManager
@NonNull public String chooseServerAlias(@NonNull String keyType, @NonNull Principal[] issuers, @NonNull Socket socket)
chooseServerAlias
in interface X509KeyManager
@NonNull public X509Certificate[] getCertificateChain(@NonNull String alias)
getCertificateChain
in interface X509KeyManager
@Nullable public PrivateKey getPrivateKey(@NonNull String alias)
getPrivateKey
in interface X509KeyManager