| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final byte[] | |
| public static final String | |
| public static final List | |
| private static final Map | |
| private static final Map | |
| public static final String | |
| public static final List | |
| public static final OpenSSHKeyPairResourceParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | extractKeyPairs(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).A hint as to the origin of the text lines resourceKey, String The line containing the begin marker beginMarker, String The line containing the end marker endMarker, FilePasswordProvider The passwordProvider, InputStream FilePasswordProvider to use in case the data is encrypted - may be
null if no encryptedThe decoded data stream, Map<String, String> InputStreamAny headers that may have been available when data was read headers)Implements abstract org.
|
| public static PrivateKeyEntryDecoder | Returns: The registeredPrivateKeyEntryDecoder or {code null} if not foundThe keyType)OpenSSH key type string - e.g., ssh-rsa, ssh-dss - ignored if
null/empty
|
| public static PrivateKeyEntryDecoder | Returns: The matchingPrivateKeyEntryDecoder provided both the public and private keys have the
same decoder - null if no match foundThe kp)KeyPair to examine - ignored if null
|
| public static PrivateKeyEntryDecoder | Returns: The registeredPrivateKeyEntryDecoder for this key or {code null} if no match foundThe key)Key (public or private) - ignored if null
|
| public static PrivateKeyEntryDecoder | Returns: The registeredPrivateKeyEntryDecoder or {code null} if no match found
|
| protected Map. | readPrivateKey(SessionContext session, NamedResource resourceKey, OpenSSHParserContext context, String keyType, FilePasswordProvider passwordProvider, InputStream stream)
|
| protected List | readPrivateKeys(SessionContext session, NamedResource resourceKey, OpenSSHParserContext context, Collection<? extends PublicKey> publicKeys, FilePasswordProvider passwordProvider, InputStream stream)
|
| protected PublicKey | readPublicKey(SessionContext session, NamedResource resourceKey, OpenSSHParserContext context, InputStream stream, Map<String, String> headers)
|
| public static void | |
| protected OpenSSHKdfOptions | resolveKdfOptions(SessionContext session, NamedResource resourceKey, String beginMarker, String endMarker, InputStream stream, Map<String, String> headers)
|
| protected <S extends InputStream> S |
| AUTH_MAGIC | back to summary |
|---|---|
| public static final String AUTH_MAGIC | |
| AUTH_MAGIC_BYTES | back to summary |
|---|---|
| private static final byte[] AUTH_MAGIC_BYTES | |
| BEGIN_MARKER | back to summary |
|---|---|
| public static final String BEGIN_MARKER | |
| BEGINNERS | back to summary |
|---|---|
| public static final List<String> BEGINNERS | |
| BY_KEY_CLASS_DECODERS_MAP | back to summary |
|---|---|
| private static final Map<Class<?>, PrivateKeyEntryDecoder<?, ?>> BY_KEY_CLASS_DECODERS_MAP | |
| BY_KEY_TYPE_DECODERS_MAP | back to summary |
|---|---|
| private static final Map<String, PrivateKeyEntryDecoder<?, ?>> BY_KEY_TYPE_DECODERS_MAP | |
| END_MARKER | back to summary |
|---|---|
| public static final String END_MARKER | |
| ENDERS | back to summary |
|---|---|
| public static final List<String> ENDERS | |
| INSTANCE | back to summary |
|---|---|
| public static final OpenSSHKeyPairResourceParser INSTANCE | |
| OpenSSHKeyPairResourceParser | back to summary |
|---|---|
| public OpenSSHKeyPairResourceParser() | |
| getPrivateKeyEntryDecoder | back to summary |
|---|---|
public static PrivateKeyEntryDecoder
| |
| getPrivateKeyEntryDecoder | back to summary |
|---|---|
public static PrivateKeyEntryDecoder
| |
| getPrivateKeyEntryDecoder | back to summary |
|---|---|
public static PrivateKeyEntryDecoder
| |
| getPrivateKeyEntryDecoder | back to summary |
|---|---|
public static PrivateKeyEntryDecoder
| |
| readPrivateKey | back to summary |
|---|---|
| protected Map. | |
| readPrivateKeys | back to summary |
|---|---|
| protected List | |
| readPublicKey | back to summary |
|---|---|
| protected PublicKey readPublicKey(SessionContext session, NamedResource resourceKey, OpenSSHParserContext context, InputStream stream, Map<String, String> headers) throws IOException, GeneralSecurityException | |
| registerPrivateKeyEntryDecoder | back to summary |
|---|---|
public static void registerPrivateKeyEntryDecoder(PrivateKeyEntryDecoder<?, ?> decoder)
| |
| resolveKdfOptions | back to summary |
|---|---|
| protected OpenSSHKdfOptions resolveKdfOptions(SessionContext session, NamedResource resourceKey, String beginMarker, String endMarker, InputStream stream, Map<String, String> headers) throws IOException, GeneralSecurityException | |
| validateStreamMagicMarker | back to summary |
|---|---|
| protected <S extends InputStream> S validateStreamMagicMarker(SessionContext session, NamedResource resourceKey, S stream) throws IOException | |