public class WSX509KeyManager extends Object implements X509KeyManager
WSX509KeyManager
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 |
---|
WSX509KeyManager(X509KeyManager defaultX509KeyManager,
String certAlias)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket)
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 socket)
Returns 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)
Returns the matching aliases for authenticating the client 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)
Returns the matching aliases for authenticating the server of a secure
socket given the public key type and the list of certificate issuer
authorities recognized by the peer (if any).
|
public WSX509KeyManager(X509KeyManager defaultX509KeyManager, String certAlias)
defaultX509KeyManager
- a JSSE default implementationcertAlias
- the client certificate aliaspublic String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
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 socket)
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.