FilePasswordProvider to our per-session
KeyPasswordProvider API.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Supplier | |
| private PasswordProviderWrapper. | |
| private static final AttributeRepository. |
| Access | Constructor and Description |
|---|---|
| public | PasswordProviderWrapper(Supplier<KeyPasswordProvider>
to use to create per-session factory)KeyPasswordProvidersCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public String | getPassword(SessionContext
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 resource, int The zero-based index of the invocation for the specific resource (in case invoked several
times for the same resource) attemptIndex)Implements org.
|
| private PasswordProviderWrapper. | |
| public FilePasswordProvider. | handleDecodeAttemptResult(SessionContext
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 resource, 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 successOverrides default org. 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) |
| private URIish |
| factory | back to summary |
|---|---|
| private final Supplier<KeyPasswordProvider> factory | |
| noSessionState | back to summary |
|---|---|
| private PasswordProviderWrapper. | |
| STATE | back to summary |
|---|---|
| private static final AttributeRepository. | |
| PasswordProviderWrapper | back to summary |
|---|---|
| public PasswordProviderWrapper(Supplier<KeyPasswordProvider> factory) Creates a new
| |
| getPassword | back to summary |
|---|---|
| public String getPassword(SessionContext session, NamedResource resource, int attemptIndex) throws IOException Implements org.
| |
| getState | back to summary |
|---|---|
| private PasswordProviderWrapper. | |
| handleDecodeAttemptResult | back to summary |
|---|---|
| public FilePasswordProvider. Overrides default org. Doc from org. 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)
| |
| toUri | back to summary |
|---|---|
| private URIish toUri(String resourceKey) Creates a | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Map | |
| pack-priv KeyPasswordProvider |
| Access | Constructor and Description |
|---|---|
| private |
| counts | back to summary |
|---|---|
| pack-priv Map<String, AtomicInteger> counts | |
| delegate | back to summary |
|---|---|
| pack-priv KeyPasswordProvider delegate | |
| PerSessionState | back to summary |
|---|---|
| private PerSessionState() | |