Package com.tangosol.net.ssl
Class URLKeyStoreLoader
java.lang.Object
com.tangosol.net.ssl.AbstractKeyStoreLoader
com.tangosol.net.ssl.URLKeyStoreLoader
- All Implemented Interfaces:
KeyStoreLoader
A
KeyStoreLoader that loads a KeyStore
file from a URL.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
-
Field Summary
Fields inherited from class com.tangosol.net.ssl.AbstractKeyStoreLoader
m_sName -
Constructor Summary
ConstructorsConstructorDescriptionCreate aURLKeyStoreLoader.URLKeyStoreLoader(String sURL) Create aURLKeyStoreLoader. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamOpen anInputStreamfor the specified named resource, which should be the contents of a JavaKeyStorein the format required by thisKeyStoreLoaderimplementation.toString()Methods inherited from class com.tangosol.net.ssl.AbstractKeyStoreLoader
equals, getName, hashCode, load, safeCloseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.net.ssl.KeyStoreLoader
createKeyStore, isEnabled, isRefreshable, load, load
-
Constructor Details
-
URLKeyStoreLoader
Create aURLKeyStoreLoader.- Parameters:
xml- theXmlValuecontaining the URL of the keystore to load.
-
URLKeyStoreLoader
Create aURLKeyStoreLoader.- Parameters:
sURL- the URL of the keystore to load.
-
-
Method Details
-
getInputStream
Description copied from class:AbstractKeyStoreLoaderOpen anInputStreamfor the specified named resource, which should be the contents of a JavaKeyStorein the format required by thisKeyStoreLoaderimplementation.How the
InputStreamis created based on the name is purely dependent on how subclasses are implemented. For example, the name could be a URL, or it could refer to a name of a secret in some secrets store, etc.- Specified by:
getInputStreamin classAbstractKeyStoreLoader- Returns:
- an
InputStreamcontaining the named resource contents, ornullif noInputStreamcould be opened - Throws:
IOException- if an error occurs creating theInputStream
-
toString
- Overrides:
toStringin classAbstractKeyStoreLoader
-