Class MockSecureSettings
java.lang.Object
org.elasticsearch.common.settings.MockSecureSettings
- All Implemented Interfaces:
Closeable,AutoCloseable,Writeable,SecureSettings
A mock implementation of secure settings for tests to use.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidclose()byte[]getSHA256Digest(String setting) booleanisLoaded()voidmerge(MockSecureSettings secureSettings) Merge the given secure settings into this one.voidvoidvoidwriteTo(StreamOutput out)
-
Constructor Details
-
MockSecureSettings
public MockSecureSettings()
-
-
Method Details
-
isLoaded
public boolean isLoaded()- Specified by:
isLoadedin interfaceSecureSettings
-
getSettingNames
- Specified by:
getSettingNamesin interfaceSecureSettings
-
getString
- Specified by:
getStringin interfaceSecureSettings
-
getFile
- Specified by:
getFilein interfaceSecureSettings
-
getSHA256Digest
- Specified by:
getSHA256Digestin interfaceSecureSettings
-
setString
-
setFile
-
merge
Merge the given secure settings into this one. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSecureSettings- Throws:
IOException
-
clone
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-