Package org.apache.ofbiz.base.util
Class AliasKeyManager
java.lang.Object
org.apache.ofbiz.base.util.AliasKeyManager
- All Implemented Interfaces:
KeyManager
,X509KeyManager
AliasKeyManager - KeyManager used to specify a certificate alias
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias
(String[] keyTypes, Principal[] issuers, Socket socket) chooseServerAlias
(String keyType, Socket socket, Principal... issuers) Choose server alias string.chooseServerAlias
(String keyType, Principal[] issuers, Socket socket) getCertificateChain
(String alias) String[]
getClientAliases
(String keyType, Principal[] issuers) getPrivateKey
(String alias) String[]
getServerAliases
(String keyType, Principal[] issuers)
-
Constructor Details
-
AliasKeyManager
protected AliasKeyManager() -
AliasKeyManager
-
-
Method Details
-
chooseClientAlias
- Specified by:
chooseClientAlias
in interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAlias
in interfaceX509KeyManager
-
chooseServerAlias
Choose server alias string.- Parameters:
keyType
- the key typesocket
- the socketissuers
- the issuers- Returns:
- the string
-
getCertificateChain
- Specified by:
getCertificateChain
in interfaceX509KeyManager
-
getClientAliases
- Specified by:
getClientAliases
in interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKey
in interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliases
in interfaceX509KeyManager
-