Package org.elasticsearch.common.ssl
Class PemKeyConfig
java.lang.Object
org.elasticsearch.common.ssl.PemKeyConfig
- All Implemented Interfaces:
SslKeyConfig
public final class PemKeyConfig extends java.lang.Object implements SslKeyConfig
A
SslKeyConfig that reads from PEM formatted paths.-
Constructor Summary
Constructors Constructor Description PemKeyConfig(java.nio.file.Path certificate, java.nio.file.Path key, char[] keyPassword) -
Method Summary
Modifier and Type Method Description javax.net.ssl.X509ExtendedKeyManagercreateKeyManager()booleanequals(java.lang.Object o)java.util.Collection<java.nio.file.Path>getDependentFiles()inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PemKeyConfig
public PemKeyConfig(java.nio.file.Path certificate, java.nio.file.Path key, char[] keyPassword)
-
-
Method Details
-
getDependentFiles
public java.util.Collection<java.nio.file.Path> getDependentFiles()- Specified by:
getDependentFilesin interfaceSslKeyConfig- Returns:
- A collection of files that are read by this config object.
The
SslKeyConfig.createKeyManager()method will read these files dynamically, so the behaviour of this key config may change whenever any of these files are modified.
-
createKeyManager
public javax.net.ssl.X509ExtendedKeyManager createKeyManager()- Specified by:
createKeyManagerin interfaceSslKeyConfig- Returns:
- A new
X509ExtendedKeyManager.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-