- All Superinterfaces:
AutoCloseable,Closeable,Writeable
- All Known Implementing Classes:
KeyStoreWrapper,LocallyMountedSecrets
An accessor for settings which are securely stored. See
SecureSetting.-
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.booleanisLoaded()Returns true iff the settings are loaded and retrievable.
-
Method Details
-
isLoaded
boolean isLoaded()Returns true iff the settings are loaded and retrievable. -
getSettingNames
Returns the names of all secure settings available. -
getString
Return a string setting. TheSecureStringshould be closed once it is used. -
getFile
Return a file setting. TheInputStreamshould be closed once it is used.- Throws:
GeneralSecurityException
-
getSHA256Digest
- Throws:
GeneralSecurityException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-