id_rsa
org.apache.sshd.common.util.security.SecurityUtils#getKeyPairResourceParser()
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final Function |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | Returns: The matching file name for the identity -null if no nameThe identity type - e.g., type)rsa - ignored if null/empty
|
| public static String | Returns: The identity type -null if cannot determine it - e.g., does not start with the
ID_FILE_PREFIXThe file name - ignored if name)null/empty
|
| public static Map | loadDefaultIdentities(boolean
If strict, FilePasswordProvider true then files that do not have the required access rights are
excluded from considerationA provider, LinkOption... FilePasswordProvider - may be null if the loaded keys are
guaranteed not to be encrypted. The argument to
FilePasswordProvider#getPassword is the path of the file whose key is to
be loadedThe options)LinkOptions to apply when checking for existence
|
| public static Map | loadDefaultIdentities(Path
The folder to scan for the built-in identities dir, boolean If strict, FilePasswordProvider true then files that do not have the required access rights are
excluded from considerationA provider, LinkOption... FilePasswordProvider - may be null if the loaded keys are
guaranteed not to be encrypted. The argument to
FilePasswordProvider#getPassword is the path of the file whose key is to
be loadedThe options)LinkOptions to apply when checking for existence
|
| public static KeyPairProvider | Returns: AKeyPair for the identities - null if no identities available
(e.g., after filtering unsupported ones or strict permissions)If strict, boolean true then files that do not have the required access rights are
excluded from considerationIf supportedOnly, FilePasswordProvider true then ignore identities that are not supported internallyA provider, LinkOption... FilePasswordProvider - may be null if the loaded keys are
guaranteed not to be encrypted. The argument to
FilePasswordProvider#getPassword is the path of the file whose key is to
be loadedThe options)LinkOptions to apply when checking for existence
|
| public static KeyPairProvider | Returns: AKeyPair for the identities - null if no identities available
(e.g., after filtering unsupported ones or strict permissions)The folder to scan for the built-in identities dir, boolean If strict, boolean true then files that do not have the required access rights are
excluded from considerationIf supportedOnly, FilePasswordProvider true then ignore identities that are not supported internallyA provider, LinkOption... FilePasswordProvider - may be null if the loaded keys are
guaranteed not to be encrypted. The argument to
FilePasswordProvider#getPassword is the path of the file whose key is to
be loadedThe options)LinkOptions to apply when checking for existence
|
| public static Map | loadIdentities(SessionContext
The session, Path SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).The dir, boolean Path of the folder to scan - ignored if not existsIf strict, Collection<String> true then files that do not have the required access rights are
excluded from considerationThe identity types - ignored if types, Function<? super String, String> null/emptyA idGenerator, FilePasswordProvider Function to derive the file name holding the specified typeA provider, LinkOption... FilePasswordProvider - may be null if the loaded keys are
guaranteed not to be encrypted. The argument to
FilePasswordProvider#getPassword is the path of the file whose key is to
be loadedThe options)LinkOptions to apply when checking for existenceScans a folder and loads all available identity files |
| public static Map | scanIdentitiesFolder(Path
The dir, boolean Path of the folder to scan - ignored if not existsIf strict, Collection<String> true then files that do not have the required access rights are excluded from
considerationThe identity types - ignored if types, Function<? super String, String> null/emptyA idGenerator, LinkOption... Function to derive the file name holding the specified typeThe options)LinkOptions to apply when checking for existenceScans a folder for possible identity files |
| ID_FILE_PREFIX | back to summary |
|---|---|
| public static final String ID_FILE_PREFIX | |
| ID_FILE_SUFFIX | back to summary |
|---|---|
| public static final String ID_FILE_SUFFIX | |
| ID_GENERATOR | back to summary |
|---|---|
| public static final Function<String, String> ID_GENERATOR | |
| ClientIdentity | back to summary |
|---|---|
| private ClientIdentity() | |
| getIdentityFileName | back to summary |
|---|---|
| public static String getIdentityFileName(NamedResource r) | |
| getIdentityFileName | back to summary |
|---|---|
public static String getIdentityFileName(String type)
| |
| getIdentityType | back to summary |
|---|---|
public static String getIdentityType(String name)
| |
| loadDefaultIdentities | back to summary |
|---|---|
public static Map
| |
| loadDefaultIdentities | back to summary |
|---|---|
public static Map
| |
| loadDefaultKeyPairProvider | back to summary |
|---|---|
public static KeyPairProvider loadDefaultKeyPairProvider(boolean strict, boolean supportedOnly, FilePasswordProvider provider, LinkOption... options) throws IOException, GeneralSecurityException
| |
| loadDefaultKeyPairProvider | back to summary |
|---|---|
public static KeyPairProvider loadDefaultKeyPairProvider(Path dir, boolean strict, boolean supportedOnly, FilePasswordProvider provider, LinkOption... options) throws IOException, GeneralSecurityException
| |
| loadIdentities | back to summary |
|---|---|
| public static Map Scans a folder and loads all available identity files
| |
| scanIdentitiesFolder | back to summary |
|---|---|
| public static Map Scans a folder for possible identity files
| |