Class MockSecureSettings
java.lang.Object
org.elasticsearch.common.settings.MockSecureSettings
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.common.settings.SecureSettings
public class MockSecureSettings
extends Object
implements org.elasticsearch.common.settings.SecureSettings
A mock implementation of secure settings for tests to use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.common.settings.SecureSettingsclone()voidclose()byte[]getSHA256Digest(String setting) org.elasticsearch.common.settings.SecureStringbooleanisLoaded()voidmerge(MockSecureSettings secureSettings) Merge the given secure settings into this one.voidvoid
-
Constructor Details
-
MockSecureSettings
public MockSecureSettings()
-
-
Method Details
-
isLoaded
public boolean isLoaded()- Specified by:
isLoadedin interfaceorg.elasticsearch.common.settings.SecureSettings
-
getSettingNames
- Specified by:
getSettingNamesin interfaceorg.elasticsearch.common.settings.SecureSettings
-
getString
- Specified by:
getStringin interfaceorg.elasticsearch.common.settings.SecureSettings
-
getFile
- Specified by:
getFilein interfaceorg.elasticsearch.common.settings.SecureSettings
-
getSHA256Digest
- Specified by:
getSHA256Digestin interfaceorg.elasticsearch.common.settings.SecureSettings
-
setString
-
setFile
-
merge
Merge the given secure settings into this one. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.common.settings.SecureSettings- Throws:
IOException
-
clone
public org.elasticsearch.common.settings.SecureSettings clone()
-