Package org.opensearch.common.settings
Interface SecureSettings
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
KeyStoreWrapper
An accessor for settings which are securely stored. See
SecureSetting
.- Opensearch.api:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Return a file setting.Returns the names of all secure settings available.byte[]
getSHA256Digest
(String setting) org.opensearch.core.common.settings.SecureString
Return a string setting.boolean
isLoaded()
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
org.opensearch.core.common.settings.SecureString getString(String setting) throws GeneralSecurityException Return a string setting. TheSecureString
should be closed once it is used.- Throws:
GeneralSecurityException
-
getFile
Return a file setting. TheInputStream
should be closed once it is used.- Throws:
GeneralSecurityException
-
getSHA256Digest
- Throws:
GeneralSecurityException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-