The backing KeyStore is inspected when this object is constructed. All key entries containing a PrivateKey and a non-empty chain of X509Certificate are then copied into an internal store. This means that subsequent modifications of the KeyStore have no effect on the X509KeyManagerImpl object.
Note that this class assumes that all keys are protected by the same password.
Algorithm constraints and certificate checks can be disabled by setting "jdk.tls.SunX509KeyManager.certChecking" system property to "false" before calling a class constructor.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | chooseAlias(List<X509KeyManagerCertChecking.
|
| public String | chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket)
Implements javax. 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). |
| public String | chooseEngineClientAlias(String[] keyTypes, Principal[] issuers, SSLEngine engine)
Overrides javax. Choose an alias to authenticate the client side of an
|
| public String | chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
Overrides javax. Choose an alias to authenticate the server side of an
|
| pack-priv String | chooseQuicClientAlias(String[] keyTypes, Principal[] issuers, QuicTLSEngineImpl quicTLSEngine)
Implements abstract sun.
|
| pack-priv String | chooseQuicServerAlias(String keyType, X500Principal[] issuers, QuicTLSEngineImpl quicTLSEngine)
Implements abstract sun.
|
| public String | chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
Implements javax. 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). |
| private String[] | getAliases(List<X509KeyManagerCertChecking.
|
| public X509Certificate[] | getCertificateChain(String alias)
Implements javax. Returns the certificate chain associated with the given alias. |
| public String[] | getClientAliases(String keyType, Principal[] issuers)
Implements javax. 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)
Implements javax. Returns the key associated with the given alias. |
| public String[] | getServerAliases(String keyType, Principal[] issuers)
Implements javax. 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). |
| protected boolean | isCheckingDisabled()
Implements abstract sun.
|
| credentialsMap | back to summary |
|---|---|
| private final Map<String, SunX509KeyManagerImpl. | |
| SunX509KeyManagerImpl | back to summary |
|---|---|
| pack-priv SunX509KeyManagerImpl(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException | |
| chooseAlias | back to summary |
|---|---|
| private String chooseAlias(List<X509KeyManagerCertChecking. | |
| chooseClientAlias | back to summary |
|---|---|
| public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) Implements javax. Doc from javax. 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).
| |
| chooseEngineClientAlias | back to summary |
|---|---|
| public String chooseEngineClientAlias(String[] keyTypes, Principal[] issuers, SSLEngine engine) Overrides javax. Doc from javax. Choose an alias to authenticate the client side of an
The default implementation returns null.
| |
| chooseEngineServerAlias | back to summary |
|---|---|
| public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) Overrides javax. Doc from javax. Choose an alias to authenticate the server side of an
The default implementation returns null.
| |
| chooseQuicClientAlias | back to summary |
|---|---|
| pack-priv String chooseQuicClientAlias(String[] keyTypes, Principal[] issuers, QuicTLSEngineImpl quicTLSEngine) Implements abstract sun.
| |
| chooseQuicServerAlias | back to summary |
|---|---|
| pack-priv String chooseQuicServerAlias(String keyType, X500Principal[] issuers, QuicTLSEngineImpl quicTLSEngine) Implements abstract sun.
| |
| chooseServerAlias | back to summary |
|---|---|
| public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) Implements javax. Doc from javax. 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).
| |
| getAliases | back to summary |
|---|---|
| private String[] getAliases(List<X509KeyManagerCertChecking. | |
| getCertificateChain | back to summary |
|---|---|
| public X509Certificate[] getCertificateChain(String alias) Implements javax. Doc from javax. Returns the certificate chain associated with the given alias.
| |
| getClientAliases | back to summary |
|---|---|
| public String[] getClientAliases(String keyType, Principal[] issuers) Implements javax. Doc from javax. 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).
| |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey(String alias) Implements javax. Doc from javax. Returns the key associated with the given alias.
| |
| getServerAliases | back to summary |
|---|---|
| public String[] getServerAliases(String keyType, Principal[] issuers) Implements javax. Doc from javax. 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).
| |
| isCheckingDisabled | back to summary |
|---|---|
| protected boolean isCheckingDisabled() Implements abstract sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final X509Certificate[] | |
| pack-priv final PrivateKey |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| certificates | back to summary |
|---|---|
| pack-priv final X509Certificate[] certificates | |
| privateKey | back to summary |
|---|---|
| pack-priv final PrivateKey privateKey | |
| X509Credentials | back to summary |
|---|---|
| pack-priv X509Credentials(PrivateKey privateKey, X509Certificate[] certificates) | |