Module org.elasticsearch.server
Class StatelessSecureSettings
java.lang.Object
org.elasticsearch.common.settings.StatelessSecureSettings
- All Implemented Interfaces:
Closeable,AutoCloseable,Writeable,SecureSettings
An implementation of secure settings from YML settings.
WARNING: this is a temporary class only for Stateless. It applies only to YML settings with a predetermined prefix.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Return a file setting.Returns the names of all secure settings available.byte[]getSHA256Digest(String setting) Return a string setting.static SettingsbooleanisLoaded()Returns true iff the settings are loaded and retrievable.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Method Details
-
install
-
isLoaded
public boolean isLoaded()Description copied from interface:SecureSettingsReturns true iff the settings are loaded and retrievable.- Specified by:
isLoadedin interfaceSecureSettings
-
getSettingNames
Description copied from interface:SecureSettingsReturns the names of all secure settings available.- Specified by:
getSettingNamesin interfaceSecureSettings
-
getString
Description copied from interface:SecureSettingsReturn a string setting. TheSecureStringshould be closed once it is used.- Specified by:
getStringin interfaceSecureSettings
-
getFile
Description copied from interface:SecureSettingsReturn a file setting. TheInputStreamshould be closed once it is used.- Specified by:
getFilein interfaceSecureSettings- Throws:
GeneralSecurityException
-
getSHA256Digest
- Specified by:
getSHA256Digestin interfaceSecureSettings
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSecureSettings- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-