Package com.tangosol.net.ssl
Class URLKeyStoreLoader
- java.lang.Object
-
- com.tangosol.net.ssl.AbstractKeyStoreLoader
-
- com.tangosol.net.ssl.URLKeyStoreLoader
-
- All Implemented Interfaces:
KeyStoreLoader
public class URLKeyStoreLoader extends AbstractKeyStoreLoader
AKeyStoreLoader
that loads aKeyStore
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
Constructors Constructor Description URLKeyStoreLoader(XmlValue xml)
Create aURLKeyStoreLoader
.URLKeyStoreLoader(String sURL)
Create aURLKeyStoreLoader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStream
getInputStream()
Open anInputStream
for the specified named resource, which should be the contents of a JavaKeyStore
in the format required by thisKeyStoreLoader
implementation.String
toString()
-
Methods inherited from class com.tangosol.net.ssl.AbstractKeyStoreLoader
equals, getName, hashCode, load, safeClose
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tangosol.net.ssl.KeyStoreLoader
createKeyStore, isEnabled, isRefreshable, load, load
-
-
-
-
Constructor Detail
-
URLKeyStoreLoader
public URLKeyStoreLoader(XmlValue xml)
Create aURLKeyStoreLoader
.- Parameters:
xml
- theXmlValue
containing the URL of the keystore to load.
-
URLKeyStoreLoader
public URLKeyStoreLoader(String sURL)
Create aURLKeyStoreLoader
.- Parameters:
sURL
- the URL of the keystore to load.
-
-
Method Detail
-
getInputStream
protected InputStream getInputStream() throws IOException
Description copied from class:AbstractKeyStoreLoader
Open anInputStream
for the specified named resource, which should be the contents of a JavaKeyStore
in the format required by thisKeyStoreLoader
implementation.How the
InputStream
is 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:
getInputStream
in classAbstractKeyStoreLoader
- Returns:
- an
InputStream
containing the named resource contents, ornull
if noInputStream
could be opened - Throws:
IOException
- if an error occurs creating theInputStream
-
toString
public String toString()
- Overrides:
toString
in classAbstractKeyStoreLoader
-
-