- All Superinterfaces:
KeyPairResourceLoader
- All Known Subinterfaces:
KeyPairPEMResourceParser
, PuttyKeyPairResourceParser<PUB,PRV>
- All Known Implementing Classes:
AbstractKeyPairResourceParser
, AbstractPEMResourceKeyPairParser
, AbstractPuttyKeyDecoder
, BouncyCastleKeyPairResourceParser
, DSSPEMResourceKeyPairParser
, DSSPuttyKeyDecoder
, ECDSAPEMResourceKeyPairParser
, ECDSAPuttyKeyDecoder
, Ed25519PEMResourceKeyParser
, EdDSAPuttyKeyDecoder
, OpenSSHKeyPairResourceParser
, PKCS8PEMResourceKeyPairParser
, RSAPEMResourceKeyPairParser
, RSAPuttyKeyDecoder
-
Field Summary
Fields
An empty parser that never fails, but always report that it cannot extract key pairs and returns empty list if
asked to load
-
Method Summary
boolean
static boolean
static boolean
static byte[]
Converts the lines assumed to contain BASE-64 encoded data into the actual content bytes.
Attempts to locate a line that contains one of the markers
Attempts to locate a line that contains one of the markers
Methods inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceLoader
loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs
-
Field Details
-
EMPTY
An empty parser that never fails, but always report that it cannot extract key pairs and returns empty list if
asked to load
-
Method Details
-
-
-
-
-
-
findMarkerLine
Attempts to locate a line that contains one of the markers
- Parameters:
lines
- The list of lines to scan - ignored if null
/empty
markers
- The markers to match - ignored if null
/empty
- Returns:
- A
AbstractMap.SimpleImmutableEntry
whose key is the first line index that matched and value
the matched marker index - null
if no match found
- See Also:
-
-
findMarkerLine
Attempts to locate a line that contains one of the markers
- Parameters:
lines
- The list of lines to scan - ignored if null
/empty
startLine
- The scan start line index
markers
- The markers to match - ignored if null
/empty
- Returns:
- A
AbstractMap.SimpleImmutableEntry
whose key is the first line index that matched and value
the matched marker index - null
if no match found
-
-