Module org.elasticsearch.sslconfig
Package org.elasticsearch.common.ssl
Class KeyStoreUtil.KeyStoreEntry
java.lang.Object
org.elasticsearch.common.ssl.KeyStoreUtil.KeyStoreEntry
- Enclosing class:
KeyStoreUtil
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Remove this entry from the underlying keystoregetAlias()getKey(char[] password) If the current entry stores a private key, returns that key.If this entry is a private key entry (seeisKeyEntry()), and the entry includes a certificate chain, and the leaf (first) element of that chain is an X.509 certificate, then that leaf certificate is returned.List<? extends X509Certificate> If this entry is a private key entry (seeisKeyEntry()), returns the certificate chain that is stored in the entry.boolean
-
Method Details
-
getAlias
-
getX509Certificate
If this entry is a private key entry (seeisKeyEntry()), and the entry includes a certificate chain, and the leaf (first) element of that chain is an X.509 certificate, then that leaf certificate is returned. If this entry is a trusted certificate entry and the trusted certificate is an X.509 certificate, then the trusted certificate is returned. In all other cases, returnsnull.- See Also:
-
isKeyEntry
public boolean isKeyEntry()- See Also:
-
getKey
If the current entry stores a private key, returns that key. Otherwise returnsnull.- See Also:
-
getX509CertificateChain
If this entry is a private key entry (seeisKeyEntry()), returns the certificate chain that is stored in the entry. If the entry contains any certificates that are not X.509 certificates, they are ignored. If the entry is not a private key entry, or it does not contain any X.509 certificates, then an empty list is returned. -
delete
public void delete()Remove this entry from the underlying keystore
-