Package jade.mtp.http.https
Class KeyStoreKeyManager
- java.lang.Object
-
- jade.mtp.http.https.KeyStoreKeyManager
-
- All Implemented Interfaces:
HTTPSKeyManager,KeyManager,X509KeyManager
public class KeyStoreKeyManager extends Object implements HTTPSKeyManager
HTTPSKeyManager that extracts its trust material from a given KeyStore. This key manager needs some configuration parameters: jade_mtp_http_https_keyStoreType: The type of KeyStore to use (defaults to JKS) jade_mtp_http_https_keyStoreFile: The File Containing the KeyStore. This keystore can only contain a key entry (Private Key + X509 Certificate). The password encrypting this key must be the same password of the KeyStore. This key material will be used to authenticate local platform when remote platforms will attempt to connect with. jade_mtp_http_https_keyStorePass: The password for the key store indicated with the parameter described above.- Author:
- Joan Ametller Esquerra
-
-
Constructor Summary
Constructors Constructor Description KeyStoreKeyManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringchooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2)StringchooseServerAlias(String arg0, Principal[] arg1, Socket arg2)X509Certificate[]getCertificateChain(String arg0)String[]getClientAliases(String arg0, Principal[] arg1)PrivateKeygetPrivateKey(String arg0)String[]getServerAliases(String arg0, Principal[] arg1)voidinit(Profile profile)This method is used to pass profile data to trust Managers.
-
-
-
Method Detail
-
init
public void init(Profile profile) throws Exception
Description copied from interface:HTTPSKeyManagerThis method is used to pass profile data to trust Managers. Specific parameters can be retrieved from profile instance.- Specified by:
initin interfaceHTTPSKeyManager- Throws:
Exception
-
getPrivateKey
public PrivateKey getPrivateKey(String arg0)
- Specified by:
getPrivateKeyin interfaceX509KeyManager
-
getCertificateChain
public X509Certificate[] getCertificateChain(String arg0)
- Specified by:
getCertificateChainin interfaceX509KeyManager
-
getClientAliases
public String[] getClientAliases(String arg0, Principal[] arg1)
- Specified by:
getClientAliasesin interfaceX509KeyManager
-
getServerAliases
public String[] getServerAliases(String arg0, Principal[] arg1)
- Specified by:
getServerAliasesin interfaceX509KeyManager
-
chooseServerAlias
public String chooseServerAlias(String arg0, Principal[] arg1, Socket arg2)
- Specified by:
chooseServerAliasin interfaceX509KeyManager
-
chooseClientAlias
public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2)
- Specified by:
chooseClientAliasin interfaceX509KeyManager
-
-