Interface SecureSettings
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
KeyStoreWrapper
public interface SecureSettings extends java.io.Closeable
An accessor for settings which are securely stored. SeeSecureSetting
.
-
-
Method Summary
Modifier and Type Method Description void
close()
java.io.InputStream
getFile(java.lang.String setting)
Return a file setting.java.util.Set<java.lang.String>
getSettingNames()
Returns the names of all secure settings available.SecureString
getString(java.lang.String setting)
Return a string setting.boolean
isLoaded()
Returns true iff the settings are loaded and retrievable.
-
-
-
Method Detail
-
isLoaded
boolean isLoaded()
Returns true iff the settings are loaded and retrievable.
-
getSettingNames
java.util.Set<java.lang.String> getSettingNames()
Returns the names of all secure settings available.
-
getString
SecureString getString(java.lang.String setting) throws java.security.GeneralSecurityException
Return a string setting. TheSecureString
should be closed once it is used.- Throws:
java.security.GeneralSecurityException
-
getFile
java.io.InputStream getFile(java.lang.String setting) throws java.security.GeneralSecurityException
Return a file setting. TheInputStream
should be closed once it is used.- Throws:
java.security.GeneralSecurityException
-
close
void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-