|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.http.transport.HttpsKeyManager
public class HttpsKeyManager
This class implements the X509KeyManager interface and allows to select a specific key for client authentification.
| Constructor Summary | |
|---|---|
HttpsKeyManager(X509KeyManager parent,
KeyStore keystore,
String keyAlias,
String keyPassword)
Constructor. |
|
| Method Summary | |
|---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket)
|
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket)
|
X509Certificate[] |
getCertificateChain(String alias)
Gets the Certificate chain for a particular alias. |
String[] |
getClientAliases(String keyType,
Principal[] issuers)
Gets the one alias set in constructor. |
PrivateKey |
getPrivateKey(String alias)
Gets the Private Key for a particular alias. |
String[] |
getServerAliases(String keyType,
Principal[] issuers)
Gets the list of server aliases for the SSLServerSockets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpsKeyManager(X509KeyManager parent,
KeyStore keystore,
String keyAlias,
String keyPassword)
parent - the parent X509KeyManagerkeystore - the KeyStore we derive our client certs and keys fromkeyAlias - the alias for key in usekeyPassword - the password used for alias| Method Detail |
|---|
public String[] getClientAliases(String keyType,
Principal[] issuers)
getClientAliases in interface X509KeyManagerkeyType - the type of private key the server expects (RSA,
DSA, etc.)issuers - the CA certificates we are narrowing our selection
on.
public String[] getServerAliases(String keyType,
Principal[] issuers)
getServerAliases in interface X509KeyManagerkeyType - the type of private key the server expects (RSA,
DSA, etc.)issuers - the CA certificates we are narrowing our selection
on.
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain in interface X509KeyManageralias - the client alias
public PrivateKey getPrivateKey(String alias)
getPrivateKey in interface X509KeyManageralias - the client alias
public String chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket)
chooseClientAlias in interface X509KeyManager
public String chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket)
chooseServerAlias in interface X509KeyManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||