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 TypeMethodDescriptionvoid
close()
Return a file setting.Returns the names of all secure settings available.byte[]
getSHA256Digest
(String setting) Return a string setting.static Settings
boolean
isLoaded()
Returns true iff the settings are loaded and retrievable.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Method Details
-
install
-
isLoaded
public boolean isLoaded()Description copied from interface:SecureSettings
Returns true iff the settings are loaded and retrievable.- Specified by:
isLoaded
in interfaceSecureSettings
-
getSettingNames
Description copied from interface:SecureSettings
Returns the names of all secure settings available.- Specified by:
getSettingNames
in interfaceSecureSettings
-
getString
Description copied from interface:SecureSettings
Return a string setting. TheSecureString
should be closed once it is used.- Specified by:
getString
in interfaceSecureSettings
-
getFile
Description copied from interface:SecureSettings
Return a file setting. TheInputStream
should be closed once it is used.- Specified by:
getFile
in interfaceSecureSettings
- Throws:
GeneralSecurityException
-
getSHA256Digest
- Specified by:
getSHA256Digest
in interfaceSecureSettings
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSecureSettings
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-