Class CryptoProviderSessionChildImpl
java.lang.Object
ghidra.formats.gfilesystem.crypto.CryptoProviderSessionChildImpl
- All Implemented Interfaces:
CryptoSession,Closeable,AutoCloseable
A stub implementation of CryptoSession that relies on a parent instance.
-
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionNEWvoidaddSuccessfulPassword(FSRL fsrl, Password password) Pushes a known good password into a cache for later re-retrieval.voidclose()Closes this session.MODIFIEDgetPasswordsFor(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.REMOVEDvoidaddSuccessfulPassword(FSRL fsrl, PasswordValue password) Removed
-
Constructor Details
-
CryptoProviderSessionChildImpl
-
-
Method Details
-
close
public void close()Description copied from interface:CryptoSessionCloses this session.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCryptoSession
-
isClosed
public boolean isClosed()Description copied from interface:CryptoSessionReturns true if this session has been closed.- Specified by:
isClosedin interfaceCryptoSession- Returns:
- boolean true if closed
-
getPasswordsFor MODIFIED
return type: Iterator → Iterator-java.util.Iterator<ghidra.formats.gfilesystem.crypto.PasswordValue> getPasswordsFor(ghidra.formats.gfilesystem.FSRL fsrl, java.lang.String prompt)+java.util.Iterator<ghidra.framework.generic.auth.Password> getPasswordsFor(ghidra.formats.gfilesystem.FSRL fsrl, java.lang.String prompt)Description copied from interface:CryptoSessionReturns a sequence of passwords (sorted by quality) that may apply to the specified file.- Specified by:
getPasswordsForin interfaceCryptoSession- Parameters:
fsrl-FSRLpath to the password protected fileprompt- optional prompt that may be displayed to a user- Returns:
Iteratorof possible passwords
-
addSuccessfulPassword NEW
Description copied from interface:CryptoSessionPushes a known good password into a cache for later re-retrieval.- Specified by:
addSuccessfulPasswordin interfaceCryptoSession- Parameters:
fsrl-FSRLpath to the file that was unlocked by the passwordpassword- the good password
-