@FunctionalInterface
public interface PublicKeyEntryResolver
Modifier and Type | Field and Description |
---|---|
static PublicKeyEntryResolver |
FAILING
A resolver that fails on all input
|
static PublicKeyEntryResolver |
IGNORING
A resolver that ignores all input
|
Modifier and Type | Method and Description |
---|---|
java.security.PublicKey |
resolve(SessionContext session,
java.lang.String keyType,
byte[] keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
static final PublicKeyEntryResolver IGNORING
static final PublicKeyEntryResolver FAILING
java.security.PublicKey resolve(SessionContext session, java.lang.String keyType, byte[] keyData, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.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 dataheaders
- Any headers that may have been available when data was readPublicKey
- ignored if null
java.io.IOException
- If failed to parse the key datajava.security.GeneralSecurityException
- If failed to generate the key