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 TypeMethodDescriptionvoid
close()
Return a file setting.Returns the names of all secure settings available.byte[]
getSHA256Digest(String setting)
Return a string setting.boolean
isLoaded()
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. TheSecureString
should be closed once it is used.- Throws:
GeneralSecurityException
-
getFile
Return a file setting. TheInputStream
should be closed once it is used.- Throws:
GeneralSecurityException
-
getSHA256Digest
- Throws:
GeneralSecurityException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-