Interface CryptoSession
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Implementing Classes:
CryptoProviderSessionChildImpl
Provides the caller with the ability to perform crypto querying operations
for a group of related files.
Typically used to query passwords and to add known good passwords to caches for later re-retrieval.
Closing a CryptoSession instance does not invalidate the instance, instead it is a suggestion that the instance should not be used for any further nested sessions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSuccessfulPassword(FSRL fsrl, Password password) Pushes a known good password into a cache for later re-retrieval.voidclose()Closes this session.getPasswordsFor(FSRL fsrl, String prompt) Returns a sequence of passwords (sorted by quality) that may apply to the specified file.booleanisClosed()Returns true if this session has been closed.
-
Method Details
-
getPasswordsFor
Returns a sequence of passwords (sorted by quality) that may apply to the specified file. -
addSuccessfulPassword
-
isClosed
boolean isClosed()Returns true if this session has been closed.- Returns:
- boolean true if closed
-
close
void close()Closes this session.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-