Java Code Examples for org.eclipse.jetty.util.security.CertificateUtils#getKeyStore()
The following examples show how to use
org.eclipse.jetty.util.security.CertificateUtils#getKeyStore() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SSLTestConfig.java From lucene-solr with Apache License 2.0 | 5 votes |
/** * Constructs a KeyStore using the specified filename and password */ private static KeyStore buildKeyStore(Resource resource, String password) { try { return CertificateUtils.getKeyStore(resource, "JKS", null, password); } catch (Exception ex) { throw new IllegalStateException("Unable to build KeyStore from resource: " + resource.getName(), ex); } }
Example 2
Source File: JDiscSslContextFactory.java From vespa with Apache License 2.0 | 5 votes |
@Override protected KeyStore loadTrustStore(Resource resource) throws Exception { return CertificateUtils.getKeyStore( resource != null ? resource : getKeyStoreResource(), Objects.toString(getTrustStoreType(), getKeyStoreType()), Objects.toString(getTrustStoreProvider(), getKeyStoreProvider()), trustStorePassword); }
Example 3
Source File: SslContextFactory.java From IoTgo_Android_App with MIT License | 2 votes |
/** * Loads keystore using an input stream or a file path in the same * order of precedence. * * Required for integrations to be able to override the mechanism * used to load a keystore in order to provide their own implementation. * * @param storeStream keystore input stream * @param storePath path of keystore file * @param storeType keystore type * @param storeProvider keystore provider * @param storePassword keystore password * @return created keystore * @throws Exception if the keystore cannot be obtained * * @deprecated */ @Deprecated protected KeyStore getKeyStore(InputStream storeStream, String storePath, String storeType, String storeProvider, String storePassword) throws Exception { return CertificateUtils.getKeyStore(storeStream, storePath, storeType, storeProvider, storePassword); }
Example 4
Source File: SslContextFactory.java From IoTgo_Android_App with MIT License | 2 votes |
/** * Loads keystore using an input stream or a file path in the same * order of precedence. * * Required for integrations to be able to override the mechanism * used to load a keystore in order to provide their own implementation. * * @param storeStream keystore input stream * @param storePath path of keystore file * @param storeType keystore type * @param storeProvider keystore provider * @param storePassword keystore password * @return created keystore * @throws Exception if the keystore cannot be obtained * * @deprecated */ @Deprecated protected KeyStore getKeyStore(InputStream storeStream, String storePath, String storeType, String storeProvider, String storePassword) throws Exception { return CertificateUtils.getKeyStore(storeStream, storePath, storeType, storeProvider, storePassword); }
Example 5
Source File: SslContextFactory.java From WebSocket-for-Android with Apache License 2.0 | 2 votes |
/** * Loads keystore using an input stream or a file path in the same * order of precedence. * * Required for integrations to be able to override the mechanism * used to load a keystore in order to provide their own implementation. * * @param storeStream keystore input stream * @param storePath path of keystore file * @param storeType keystore type * @param storeProvider keystore provider * @param storePassword keystore password * @return created keystore * @throws Exception if the keystore cannot be obtained */ protected KeyStore getKeyStore(InputStream storeStream, String storePath, String storeType, String storeProvider, String storePassword) throws Exception { return CertificateUtils.getKeyStore(storeStream, storePath, storeType, storeProvider, storePassword); }