public interface

KeyStoreAccessor

com.atlassian.jira.configurator.ssl.KeyStoreAccessor
Known Indirect Subclasses

Summary

Public Methods
X509Certificate loadCertificate(CertificateDetails certificateDetails)
Returns the x509 certificate of a private key.

Public Methods

public X509Certificate loadCertificate (CertificateDetails certificateDetails)

Returns the x509 certificate of a private key. In detail, it returns the first certificate of a private key's certificate chain, if the alias denotes a key entry. Thus it returns only certificates of entries for which a private key is existing. This obviously doesn't yield for public certificates.

Parameters
certificateDetails the information which references an entry in the key store
Returns
  • the first certificate of the private key's certificate chain; else null
Throws
UnrecoverableKeyException if the password for the key store and the private key are different
CertificateException
IOException
KeyStoreException
NoSuchAlgorithmException