Class URLPrivateKeyLoader
java.lang.Object
com.tangosol.net.ssl.AbstractPrivateKeyLoader
com.tangosol.net.ssl.URLPrivateKeyLoader
- All Implemented Interfaces:
PrivateKeyLoader
A
PrivateKeyLoader that loads a PrivateKey
file in PEM format from a URL.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
-
Field Summary
Fields inherited from class com.tangosol.net.ssl.AbstractPrivateKeyLoader
m_sName -
Constructor Summary
ConstructorsConstructorDescriptionCreate aURLPrivateKeyLoader.URLPrivateKeyLoader(String sURL) Create aURLPrivateKeyLoader. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamOpen anInputStreamfor the specified named resource, which should be the contents of a JavaPrivateKeyin the format required by thisPrivateKeyLoaderimplementation.toString()Methods inherited from class com.tangosol.net.ssl.AbstractPrivateKeyLoader
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.PrivateKeyLoader
isEnabled, isRefreshable
-
Constructor Details
-
URLPrivateKeyLoader
Create aURLPrivateKeyLoader.- Parameters:
xml- theXmlValuecontaining the URL of the private key to load.
-
URLPrivateKeyLoader
Create aURLPrivateKeyLoader.- Parameters:
sURL- the URL of the certificate to load.
-
-
Method Details
-
getInputStream
Description copied from class:AbstractPrivateKeyLoaderOpen anInputStreamfor the specified named resource, which should be the contents of a JavaPrivateKeyin the format required by thisPrivateKeyLoaderimplementation.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 classAbstractPrivateKeyLoader- Returns:
- an
InputStreamcontaining the named resource contents, ornullif noInputStreamcould be opened - Throws:
IOException- if an error occurs creating theInputStream
-
toString
- Overrides:
toStringin classAbstractPrivateKeyLoader
-