FileKeyPairProvider that uses an external KeyCache.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final KeyCache | |
| public static final AttributeRepository. | KEY_PATHS_BY_FINGERPRINT
An attribute set on the |
| Access | Constructor and Description |
|---|---|
| public | CachingKeyPairProvider(List<Path>
to load keys from paths, KeyCache to use, may be cache)null if no external caching is desiredCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| public Iterator | |
| private Iterator | |
| private KeyPair | |
| private KeyPair | loadKey(SessionContext session, NamedResource resource, Path path, FilePasswordProvider passwordProvider)
|
| public Iterable | loadKeys(SessionContext
The session)SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).Overrides org. Implements org. Load available keys. |
| cache | back to summary |
|---|---|
| private final KeyCache cache | |
| KEY_PATHS_BY_FINGERPRINT | back to summary |
|---|---|
| public static final AttributeRepository. An attribute set on the | |
| CachingKeyPairProvider | back to summary |
|---|---|
| public CachingKeyPairProvider(List<Path> paths, KeyCache cache) Creates a new | |
| getKeyId | back to summary |
|---|---|
| pack-priv static String getKeyId(ClientSession session, KeyPair identity) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| iterator | back to summary |
|---|---|
| private Iterator | |
| loadKey | back to summary |
|---|---|
| private KeyPair loadKey(SessionContext session, Path path) throws IOException, GeneralSecurityException | |
| loadKey | back to summary |
|---|---|
| private KeyPair loadKey(SessionContext session, NamedResource resource, Path path, FilePasswordProvider passwordProvider) throws IOException, GeneralSecurityException | |
| loadKeys | back to summary |
|---|---|
| public Iterable Overrides org. Implements org. Doc from org. Load available keys.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SessionContext | |
| private KeyPair | |
| private boolean | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public KeyPair |
| context | back to summary |
|---|---|
| private final SessionContext context | |
| nextItem | back to summary |
|---|---|
| private KeyPair nextItem | |
| nextSet | back to summary |
|---|---|
| private boolean nextSet | |
| paths | back to summary |
|---|---|
| private final Iterator<Path> paths | |
| CancellingKeyPairIterator | back to summary |
|---|---|
| public CancellingKeyPairIterator(SessionContext session, Collection<? extends Path> resources) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public KeyPair next() Implements java. Doc from java. Returns the next element in the iteration. | |