Interface SecureSettings
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
KeyStoreWrapper
An accessor for settings which are securely stored. See
SecureSetting.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Return a file setting.Returns the names of all secure settings available.byte[]getSHA256Digest(String setting)Return a string setting.booleanisLoaded()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
Return a string setting. TheSecureStringshould be closed once it is used.- Throws:
GeneralSecurityException
-
getFile
Return a file setting. TheInputStreamshould be closed once it is used.- Throws:
GeneralSecurityException
-
getSHA256Digest
- Throws:
GeneralSecurityException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-