Class CBLKeyManager
- java.lang.Object
-
- com.couchbase.lite.internal.replicator.CBLKeyManager
-
- All Implemented Interfaces:
KeyManager
,X509KeyManager
public class CBLKeyManager extends Object implements X509KeyManager
X509KeyManager for client certificate authentication with the given client TLSIdentity.
-
-
Constructor Summary
Constructors Constructor Description CBLKeyManager(TLSIdentity identity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
CBLKeyManager
public CBLKeyManager(@NonNull TLSIdentity identity)
-
-
Method Detail
-
getClientAliases
@NonNull public String[] getClientAliases(@NonNull String keyType, @NonNull Principal[] issuers)
- Specified by:
getClientAliases
in interfaceX509KeyManager
-
chooseClientAlias
@NonNull public String chooseClientAlias(@NonNull String[] keyType, @NonNull Principal[] issuers, @NonNull Socket socket)
- Specified by:
chooseClientAlias
in interfaceX509KeyManager
-
getServerAliases
@NonNull public String[] getServerAliases(@NonNull String keyType, @NonNull Principal[] issuers)
- Specified by:
getServerAliases
in interfaceX509KeyManager
-
chooseServerAlias
@NonNull public String chooseServerAlias(@NonNull String keyType, @NonNull Principal[] issuers, @NonNull Socket socket)
- Specified by:
chooseServerAlias
in interfaceX509KeyManager
-
getCertificateChain
@NonNull public X509Certificate[] getCertificateChain(@NonNull String alias)
- Specified by:
getCertificateChain
in interfaceX509KeyManager
-
getPrivateKey
@Nullable public PrivateKey getPrivateKey(@NonNull String alias)
- Specified by:
getPrivateKey
in interfaceX509KeyManager
-
-