com.atlassian.jira.configurator.ssl
Class KeyStoreAccessorImpl
java.lang.Object
com.atlassian.jira.configurator.ssl.KeyStoreAccessorImpl
- All Implemented Interfaces:
- KeyStoreAccessor
public class KeyStoreAccessorImpl
- extends Object
- implements KeyStoreAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreAccessorImpl
public KeyStoreAccessorImpl(@Nonnull
KeyStoreProvider keyStoreProvider)
loadCertificate
public X509Certificate loadCertificate(@Nonnull
CertificateDetails certificateDetails)
throws IOException,
NoSuchAlgorithmException,
KeyStoreException,
CertificateException,
UnrecoverableKeyException
- Description copied from interface:
KeyStoreAccessor
- 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.
- Specified by:
loadCertificate
in interface KeyStoreAccessor
- 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-2013 Atlassian. All Rights Reserved.