| java.lang.Object com.sun.jbi.internal.security.https.SSLClientKeyManager
SSLClientKeyManager | public class SSLClientKeyManager implements X509KeyManager(Code) | | This is an implementation of the X509KeyManger, an instance of which is
initialized for a particular alias and can be passed to
the SSLContext.init() method. This is done when the SSL configuration
specifies that a particular client alias is to be used for Client Authentication.
author: Sun Microsystems, Inc. |
Method Summary | |
public String | chooseClientAlias(String[] str, java.security.Principal[] principal, java.net.Socket socket) Parameters: str - the key algorithm type name(s), ordered with the most-preferred key type first. Parameters: principal - issuers the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. Parameters: socket - the socket to be used for this connection. | public String | chooseServerAlias(String keyType, java.security.Principal[] principal, java.net.Socket socket) This method should never be called, as we can only control the client side
of the SSL connection since the server connections are managed by the HTTP
Listener.
Parameters: keyType - the key algorithm type name(s), ordered with the most-preferred key type first. Parameters: principal - issuers the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. Parameters: socket - the socket to be used for this connection. | public X509Certificate[] | getCertificateChain(String alias) Parameters: alias - is the Alias name the certificate chain associated with the given alias. | public String[] | getClientAliases(String keyType, java.security.Principal[] principal) Get the matching aliases for authenticating the client side of a secure socket
given the public key type and the list of certificate issuer authorities
recognized by the peer (if any). | public PrivateKey | getPrivateKey(String alias) Parameters: alias - is the alias name. | public String[] | getServerAliases(String keyType, java.security.Principal[] principal) Get the matching aliases for authenticating the server side of a secure socket
given the public key type and the list of certificate issuer authorities
recognized by the peer (if any). |
SSLClientKeyManager | public SSLClientKeyManager(KeyStoreManager ksMgr, String alias, StringTranslator translator) throws KeyStoreException(Code) | | Creates a new instance of SSLClientKeyManager.
Parameters: ksMgr - is KeyStoreManager, which is the source ofthe private Key and Certificate for the alias. Parameters: translator - is the StringTranslator Parameters: alias - is the alias throws: KeyStoreException - if there are problems in getting the Client Key/Certificate |
chooseClientAlias | public String chooseClientAlias(String[] str, java.security.Principal[] principal, java.net.Socket socket)(Code) | | Parameters: str - the key algorithm type name(s), ordered with the most-preferred key type first. Parameters: principal - issuers the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. Parameters: socket - the socket to be used for this connection. This parameter can be null, in which case this method will return the most generic alias to use. the alias name for the desired key, or null if there are no matches. |
chooseServerAlias | public String chooseServerAlias(String keyType, java.security.Principal[] principal, java.net.Socket socket)(Code) | | This method should never be called, as we can only control the client side
of the SSL connection since the server connections are managed by the HTTP
Listener.
Parameters: keyType - the key algorithm type name(s), ordered with the most-preferred key type first. Parameters: principal - issuers the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. Parameters: socket - the socket to be used for this connection. This parameter can be null, in which case this method will return the most generic alias to use. the alias name for the desired key, or null if there are no matches. |
getCertificateChain | public X509Certificate[] getCertificateChain(String alias)(Code) | | Parameters: alias - is the Alias name the certificate chain associated with the given alias. |
getClientAliases | public String[] getClientAliases(String keyType, java.security.Principal[] principal)(Code) | | Get the matching aliases for authenticating the client side of a secure socket
given the public key type and the list of certificate issuer authorities
recognized by the peer (if any).
Parameters: keyType - is the key algorithm type name Parameters: principal - is the list of acceptable CA issuer subject names, or null if it does not matter which issuers are used. an array of the matching alias names, or null if there were no matches. |
getPrivateKey | public PrivateKey getPrivateKey(String alias)(Code) | | Parameters: alias - is the alias name. the key associated with the given alias. |
getServerAliases | public String[] getServerAliases(String keyType, java.security.Principal[] principal)(Code) | | Get the matching aliases for authenticating the server side of a secure socket
given the public key type and the list of certificate issuer authorities
recognized by the peer (if any).
Parameters: keyType - is the key algorithm type name Parameters: principal - is the list of acceptable CA issuer subject names, or null if it does not matter which issuers are used. an array of the matching alias names, or null if there were no matches. |
|
|