| Modifier and Type | Class and Description |
|---|---|
| public static interface | FilePasswordProvider.
type of the result T>Something that can produce a result given a password. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final FilePasswordProvider | EMPTY
An "empty" provider that returns |
| Modifier and Type | Method and Description |
|---|---|
| public default < Result type of the decoder T> T | Returns: the decoder's result, ornull if noneSessionContext, may be nullNamedResource used for error reportingDecoder to produce the result given a passwordObtains the password through |
| public String | Returns: The password - ifnull/empty then no password is requiredThe session, NamedResource SessionContext for invoking this load command - may be null if not
invoked within a session context (e.g., offline tool or session unknown).The resource key representing the private file resourceKey, int The zero-based index of the invocation for the specific resource (in case invoked several
times for the same resource) retryIndex)
|
| public default FilePasswordProvider. | Returns: How to proceed in case of error - ignored if invoked in order to report successNote
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).The resource key representing the private file resourceKey, int The zero-based index of the invocation for the specific resource (in case
invoked several times for the same resource). If success report, it indicates
the number of retries it took to succeed retryIndex, String The password that was attempted password, Exception The attempt result - err)null for successInvoked to inform the password provide about the decoding result Note any exception thrown from this method (including if called to inform about success) will be propagated instead of the original (if any was reported) |
| public static FilePasswordProvider |
| EMPTY | back to summary |
|---|---|
| public static final FilePasswordProvider EMPTY An "empty" provider that returns | |
| decode | back to summary |
|---|---|
| public default <T> T decode(SessionContext session, NamedResource resourceKey, FilePasswordProvider. Obtains the password through
| |
| getPassword | back to summary |
|---|---|
public String getPassword(SessionContext session, NamedResource resourceKey, int retryIndex) throws IOException
| |
| handleDecodeAttemptResult | back to summary |
|---|---|
| public default FilePasswordProvider. Invoked to inform the password provide about the decoding result Note any exception thrown from this method (including if called to inform about success) will be propagated instead of the original (if any was reported)
| |
| of | back to summary |
|---|---|
| public static FilePasswordProvider of(String password) | |
| decode | back to summary |
|---|---|
| public T decode(String password) throws IOException, GeneralSecurityException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FilePasswordProvider. | IGNORE
Skip attempt and see if can proceed without the key |
| public static final FilePasswordProvider. | RETRY
Try again the decoding process - including password prompt |
| public static final FilePasswordProvider. | TERMINATE
Re-throw the decoding exception |
| public static final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FilePasswordProvider. | |
| public static FilePasswordProvider. |
| IGNORE | back to summary |
|---|---|
| public static final FilePasswordProvider. Skip attempt and see if can proceed without the key | |
| RETRY | back to summary |
|---|---|
| public static final FilePasswordProvider. Try again the decoding process - including password prompt | |
| TERMINATE | back to summary |
|---|---|
| public static final FilePasswordProvider. Re-throw the decoding exception | |
| VALUES | back to summary |
|---|---|
| public static final Set<FilePasswordProvider. | |
| ResourceDecodeResult | back to summary |
|---|---|
| private ResourceDecodeResult() | |
| valueOf | back to summary |
|---|---|
| public static FilePasswordProvider. | |
| values | back to summary |
|---|---|
| public static FilePasswordProvider. | |