Package com.tangosol.net.ssl
Class URLCertificateLoader
java.lang.Object
com.tangosol.net.ssl.AbstractCertificateLoader
com.tangosol.net.ssl.URLCertificateLoader
- All Implemented Interfaces:
CertificateLoader
A
PrivateKeyLoader
that loads a Certificate
file from a URL.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
-
Field Summary
Fields inherited from class com.tangosol.net.ssl.AbstractCertificateLoader
m_sName
-
Constructor Summary
ConstructorDescriptionCreate aURLCertificateLoader
.URLCertificateLoader
(String sURL) Create aURLCertificateLoader
. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
Open anInputStream
for the specified named resource, which should be the contents of a JavaCertificate
in the format required by thisCertificateLoader
implementation.void
toString()
Methods inherited from class com.tangosol.net.ssl.AbstractCertificateLoader
equals, getName, hashCode, isEnabled, 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.CertificateLoader
isRefreshable
-
Constructor Details
-
URLCertificateLoader
Create aURLCertificateLoader
.- Parameters:
xml
- theXmlValue
containing the URL of the certificate to load.
-
URLCertificateLoader
Create aURLCertificateLoader
.- Parameters:
sURL
- the URL of the certificate to load.
-
-
Method Details
-
setURL
-
getInputStream
Description copied from class:AbstractCertificateLoader
Open anInputStream
for the specified named resource, which should be the contents of a JavaCertificate
in the format required by thisCertificateLoader
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 classAbstractCertificateLoader
- Returns:
- an
InputStream
containing the named resource contents, ornull
if noInputStream
could be opened - Throws:
IOException
- if an error occurs creating theInputStream
-
toString
- Overrides:
toString
in classAbstractCertificateLoader
-