@FunctionalInterface public interface PrivateKeyEntryResolver
| Modifier and Type | Field and Description |
|---|---|
static PrivateKeyEntryResolver |
FAILING
A resolver that fails on all input
|
static PrivateKeyEntryResolver |
IGNORING
A resolver that ignores all input
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
resolve(SessionContext session,
String keyType,
byte[] keyData) |
static final PrivateKeyEntryResolver IGNORING
static final PrivateKeyEntryResolver FAILING
PrivateKey resolve(SessionContext session, String keyType, byte[] keyData) throws IOException, GeneralSecurityException
session - The SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).keyType - The OpenSSH reported key typekeyData - The OpenSSH encoded key dataPrivateKey - ignored if nullIOException - If failed to parse the key dataGeneralSecurityException - If failed to generate the keyCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.