Package com.tangosol.net.ssl
Class URLCertificateLoader
- java.lang.Object
-
- com.tangosol.net.ssl.AbstractCertificateLoader
-
- com.tangosol.net.ssl.URLCertificateLoader
-
- All Implemented Interfaces:
CertificateLoader
public class URLCertificateLoader extends AbstractCertificateLoader
APrivateKeyLoaderthat loads aCertificatefile 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
Constructors Constructor Description URLCertificateLoader(XmlValue xml)Create aURLCertificateLoader.URLCertificateLoader(String sURL)Create aURLCertificateLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStreamgetInputStream()Open anInputStreamfor the specified named resource, which should be the contents of a JavaCertificatein the format required by thisCertificateLoaderimplementation.voidsetURL(String sURL)StringtoString()-
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 Detail
-
URLCertificateLoader
public URLCertificateLoader(XmlValue xml)
Create aURLCertificateLoader.- Parameters:
xml- theXmlValuecontaining the URL of the certificate to load.
-
URLCertificateLoader
public URLCertificateLoader(String sURL)
Create aURLCertificateLoader.- Parameters:
sURL- the URL of the certificate to load.
-
-
Method Detail
-
setURL
@Injectable(".") public void setURL(String sURL)
-
getInputStream
protected InputStream getInputStream() throws IOException
Description copied from class:AbstractCertificateLoaderOpen anInputStreamfor the specified named resource, which should be the contents of a JavaCertificatein the format required by thisCertificateLoaderimplementation.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 classAbstractCertificateLoader- Returns:
- an
InputStreamcontaining the named resource contents, ornullif noInputStreamcould be opened - Throws:
IOException- if an error occurs creating theInputStream
-
toString
public String toString()
- Overrides:
toStringin classAbstractCertificateLoader
-
-