@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 |
---|---|
java.security.PrivateKey |
resolve(java.lang.String keyType,
byte[] keyData) |
static final PrivateKeyEntryResolver IGNORING
static final PrivateKeyEntryResolver FAILING
java.security.PrivateKey resolve(java.lang.String keyType, byte[] keyData) throws java.io.IOException, java.security.GeneralSecurityException
keyType
- The OpenSSH
reported key typekeyData
- The OpenSSH
encoded key dataPrivateKey
- ignored if null
java.io.IOException
- If failed to parse the key datajava.security.GeneralSecurityException
- If failed to generate the key