Package org.opends.quicksetup.util
Class UIKeyStore
- java.lang.Object
-
- java.security.KeyStore
-
- org.opends.quicksetup.util.UIKeyStore
-
public class UIKeyStore extends KeyStore
Class used to get the KeyStore that the graphical utilities use.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.security.KeyStore
KeyStore.Builder, KeyStore.CallbackHandlerProtection, KeyStore.Entry, KeyStore.LoadStoreParameter, KeyStore.PasswordProtection, KeyStore.PrivateKeyEntry, KeyStore.ProtectionParameter, KeyStore.SecretKeyEntry, KeyStore.TrustedCertificateEntry
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidacceptCertificate(X509Certificate[] chain)Updates the Key Store with the provided certificate chain.static KeyStoregetInstance()Returns the KeyStore to be used by graphical applications.-
Methods inherited from class java.security.KeyStore
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, store
-
-
-
-
Method Detail
-
getInstance
public static KeyStore getInstance() throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException
Returns the KeyStore to be used by graphical applications.- Returns:
- the KeyStore to be used by graphical applications.
- Throws:
IOException- if there was a file system access error.KeyStoreException- if there was a problem while reading the key store.CertificateException- if an error with a certificate occurred.NoSuchAlgorithmException- if the used algorithm is not supported by the system.
-
acceptCertificate
public static void acceptCertificate(X509Certificate[] chain) throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException
Updates the Key Store with the provided certificate chain.- Parameters:
chain- the certificate chain to be accepted.- Throws:
IOException- if there was a file system access error.KeyStoreException- if there was a problem while reading or writing to the key store.CertificateException- if an error with a certificate occurred.NoSuchAlgorithmException- if the used algorithm is not supported by the system.
-
-