FileDocCategorySizeDatePackage
X509KeyManager.javaAPI DocAndroid 1.5 API4564Wed May 06 22:41:06 BST 2009javax.net.ssl

X509KeyManager

public interface X509KeyManager implements KeyManager
A Key Manager for X509 certificate-based key pairs.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringchooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)
Chooses an alias for the client side of an SSL connection to authenticate it with the specified public key type and certificate issuers.

param
keyType the list of public key algorithm names.
param
issuers the list of certificate issuers, or {@code null} if any issuer will do.
param
socket the socket for the connection, or {@code null} if the alias selected does not depend on a specific socket.
return
the alias name of a matching key or {@code null} if there are no matches.
since
Android 1.0

public java.lang.StringchooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)
Chooses an alias for the server side of an SSL connection to authenticate it with the specified public key type and certificate issuers.

param
keyType the list of public key algorithm type names.
param
issuers the list of certificate issuers, or {@code null} if any issuer will do.
param
socket the socket for the connection, or {@code null} if the alias selected does not depend on a specific socket.
return
the alias name of a matching key or {@code null} if there are no matches.
since
Android 1.0

public java.security.cert.X509Certificate[]getCertificateChain(java.lang.String alias)
Returns the certificate chain for the specified alias.

param
alias the alias to get the certificate chain for.
return
the certificate chain for the specified alias, or {@code null} if the alias cannot be found.
since
Android 1.0

public java.lang.String[]getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)
Returns the client aliases for the specified public key type and list of certificate issuers.

param
keyType the public key algorithm type name.
param
issuers the list of certificate issuers, or {@code null} if any issuer will do.
return
the client aliases for the specified public key type, or {@code null} if there are no matching aliases.
since
Android 1.0

public java.security.PrivateKeygetPrivateKey(java.lang.String alias)
Returns the private key for the specified alias.

param
alias the alias to get the private key for.
return
the private key for the specified alias, or {@code null} if the alias cannot be found.
since
Android 1.0

public java.lang.String[]getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
Returns the server aliases for the specified public key type and list of certificate issuers.

param
keyType the public key algorithm type name.
param
issuers the list of certificate issuers, or {@code null} if any issuer will do.
return
the client aliases for the specified public key type, or {@code null} if there are no matching aliases.
since
Android 1.0