/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} */ public static AtomicLoadKeyStore newInstance(final String type) throws KeyStoreException { try { return newInstance(type, (String) null); } catch (NoSuchProviderException e) { throw new KeyStoreException(e); } }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @param provider the provide to use to create the {@link KeyStore} * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} * @throws NoSuchProviderException if the provider specified can not be found. */ public static AtomicLoadKeyStore newInstance(final String type, final String provider) throws KeyStoreException, NoSuchProviderException { KeyStore keyStore = provider != null ? KeyStore.getInstance(type, provider) : KeyStore.getInstance(type); final Provider resolvedProvider = keyStore.getProvider(); return newInstance(type, resolvedProvider); }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} */ public static AtomicLoadKeyStore newInstance(final String type) throws KeyStoreException { try { return newInstance(type, (String) null); } catch (NoSuchProviderException e) { throw new KeyStoreException(e); } }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @param provider the provide to use to create the {@link KeyStore} * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} * @throws NoSuchProviderException if the provider specified can not be found. */ public static AtomicLoadKeyStore newInstance(final String type, final String provider) throws KeyStoreException, NoSuchProviderException { KeyStore keyStore = provider != null ? KeyStore.getInstance(type, provider) : KeyStore.getInstance(type); final Provider resolvedProvider = keyStore.getProvider(); return newInstance(type, resolvedProvider); }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} */ public static AtomicLoadKeyStore newInstance(final String type) throws KeyStoreException { try { return newInstance(type, (String) null); } catch (NoSuchProviderException e) { throw new KeyStoreException(e); } }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @param provider the provide to use to create the {@link KeyStore} * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} * @throws NoSuchProviderException if the provider specified can not be found. */ public static AtomicLoadKeyStore newInstance(final String type, final String provider) throws KeyStoreException, NoSuchProviderException { KeyStore keyStore = provider != null ? KeyStore.getInstance(type, provider) : KeyStore.getInstance(type); final Provider resolvedProvider = keyStore.getProvider(); return newInstance(type, resolvedProvider); }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} */ public static AtomicLoadKeyStore newInstance(final String type) throws KeyStoreException { try { return newInstance(type, (String) null); } catch (NoSuchProviderException e) { throw new KeyStoreException(e); } }
/** * Create a new {@code AtomicLoadKeyStore} wrapping a {@link KeyStore} of the type specified. * * @param type the type of {@link KeyStore} to be wrapped * @param provider the provide to use to create the {@link KeyStore} * @return the new {@code AtomicLoadKeyStore} instance * @throws KeyStoreException If there is a problem creating the {@link KeyStore} * @throws NoSuchProviderException if the provider specified can not be found. */ public static AtomicLoadKeyStore newInstance(final String type, final String provider) throws KeyStoreException, NoSuchProviderException { KeyStore keyStore = provider != null ? KeyStore.getInstance(type, provider) : KeyStore.getInstance(type); final Provider resolvedProvider = keyStore.getProvider(); return newInstance(type, resolvedProvider); }
try { Provider provider = resolveProvider(); AtomicLoadKeyStore keyStore = AtomicLoadKeyStore.newInstance(type, provider); if (path != null) { pathResolver = pathResolver();