com.atlassian.jira.configurator.ssl
Interface KeyStoreAccessor

All Known Implementing Classes:
KeyStoreAccessorImpl

public interface KeyStoreAccessor


Method Summary
 X509Certificate loadCertificate(CertificateDetails certificateDetails)
          Returns the x509 certificate of a private key.
 

Method Detail

loadCertificate

X509Certificate loadCertificate(@Nonnull
                                CertificateDetails certificateDetails)
                                throws IOException,
                                       NoSuchAlgorithmException,
                                       KeyStoreException,
                                       CertificateException,
                                       UnrecoverableKeyException
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
IOException
NoSuchAlgorithmException
KeyStoreException
CertificateException


Copyright © 2002-2014 Atlassian. All Rights Reserved.