public interface PasswordDictionary extends DictionaryBase, Iterable<String>
Learn more
| Modifier and Type | Method and Description |
|---|---|
void |
add(String filePath,
String password)
Adds a password for a document to the dictionary.
|
void |
clear()
Removes all passwords from this
PasswordDictionary object. |
boolean |
contains(String filePath)
Determines whether the dictionary contains a password for the specified document.
|
int |
getCount()
Gets the number of elements contained in the dictionary.
|
String |
getPassword(String filePath)
Gets the password for the file.
|
Iterator<String> |
iterator()
Returns an iterator that iterates through the collection.
|
boolean |
remove(String filePath)
Removes a password of the specified document from the dictionary.
|
exportDictionary, getDictionaryType, importDictionaryforEach, spliteratorvoid add(String filePath, String password)
filePath - The document file path.password - The document password.void clear()
PasswordDictionary object.clear in interface DictionaryBaseboolean contains(String filePath)
filePath - The document file path.true if the dictionary contains a password for the document; otherwise, false.int getCount()
String getPassword(String filePath)
filePath - The file path.boolean remove(String filePath)
filePath - The document file path.true if the password was successfully removed; otherwise, false.
This method also returns false if filePath was not found in the dictionary.Copyright © 2026. All rights reserved.