public class UIKeyStore extends KeyStore
KeyStore.Builder, KeyStore.CallbackHandlerProtection, KeyStore.Entry, KeyStore.LoadStoreParameter, KeyStore.PasswordProtection, KeyStore.PrivateKeyEntry, KeyStore.ProtectionParameter, KeyStore.SecretKeyEntry, KeyStore.TrustedCertificateEntry
Modifier and Type | Method and Description |
---|---|
static void |
acceptCertificate(X509Certificate[] chain)
Updates the Key Store with the provided certificate chain.
|
static KeyStore |
getInstance()
Returns the KeyStore to be used by graphical applications.
|
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, store
public static KeyStore getInstance() throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException
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.public static void acceptCertificate(X509Certificate[] chain) throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException
chain
- the certificate chain to be accepted.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.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.