public class AMX509KeyManagerImpl extends Object implements AMX509KeyManager
AMX509KeyManagerImpl
class implements JSSE X509KeyManager
interface. This implementation is the same as JSSE default implementation
exception it will supply user-specified client certificate alias when
client authentication is on.Constructor and Description |
---|
AMX509KeyManagerImpl() |
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket sock)
Choose an alias to authenticate 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).
|
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket sock)
Choose an alias to authenticate 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).
|
X509Certificate[] |
getCertificateChain(String alias)
Returns the certificate chain associated with the given alias.
|
String[] |
getClientAliases(String keyType,
Principal[] issuers)
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).
|
PrivateKey |
getPrivateKey(String alias)
Returns the private key associated with the given alias.
|
String[] |
getServerAliases(String keyType,
Principal[] issuers)
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).
|
void |
setAlias(String alias)
This constructor takes a JSSE default implementation and a
user-specified client certificate alias.
|
public static Debug debug
public void setAlias(String alias)
setAlias
in interface AMX509KeyManager
alias
- certificate aliaspublic String chooseClientAlias(String[] keyType, Principal[] issuers, Socket sock)
chooseClientAlias
in interface X509KeyManager
keyType
- the key algorithm type nameissuers
- the list of acceptable CA issuer subject namespublic String chooseServerAlias(String keyType, Principal[] issuers, Socket sock)
chooseServerAlias
in interface X509KeyManager
keyType
- the key algorithm type nameissuers
- the list of acceptable CA issuer subject namespublic String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases
in interface X509KeyManager
keyType
- the key algorithm type nameissuers
- the list of acceptable CA issuer subject namespublic String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases
in interface X509KeyManager
keyType
- the key algorithm type nameissuers
- the list of acceptable CA issuer subject namespublic X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
alias
- the alias namepublic PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.