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.SecureSettings
clone()
void
close()
byte[]
getSHA256Digest
(String setting) org.elasticsearch.common.settings.SecureString
boolean
isLoaded()
void
merge
(MockSecureSettings secureSettings) Merge the given secure settings into this one.void
void
-
Constructor Details
-
MockSecureSettings
public MockSecureSettings()
-
-
Method Details
-
isLoaded
public boolean isLoaded()- Specified by:
isLoaded
in interfaceorg.elasticsearch.common.settings.SecureSettings
-
getSettingNames
- Specified by:
getSettingNames
in interfaceorg.elasticsearch.common.settings.SecureSettings
-
getString
- Specified by:
getString
in interfaceorg.elasticsearch.common.settings.SecureSettings
-
getFile
- Specified by:
getFile
in interfaceorg.elasticsearch.common.settings.SecureSettings
-
getSHA256Digest
- Specified by:
getSHA256Digest
in interfaceorg.elasticsearch.common.settings.SecureSettings
-
setString
-
setFile
-
merge
Merge the given secure settings into this one. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.common.settings.SecureSettings
- Throws:
IOException
-
clone
public org.elasticsearch.common.settings.SecureSettings clone()
-