Interface PrivateKeyEntryResolver
-
- All Known Subinterfaces:
PrivateKeyEntryDecoder<PUB,PRV>
- All Known Implementing Classes:
AbstractPrivateKeyEntryDecoder,OpenSSHDSSPrivateKeyEntryDecoder,OpenSSHECDSAPrivateKeyEntryDecoder,OpenSSHEd25519PrivateKeyEntryDecoder,OpenSSHRSAPrivateKeyDecoder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PrivateKeyEntryResolver
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static PrivateKeyEntryResolverFAILINGA resolver that fails on all inputstatic PrivateKeyEntryResolverIGNORINGA resolver that ignores all input
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrivateKeyresolve(SessionContext session, String keyType, byte[] keyData)
-
-
-
Field Detail
-
IGNORING
static final PrivateKeyEntryResolver IGNORING
A resolver that ignores all input
-
FAILING
static final PrivateKeyEntryResolver FAILING
A resolver that fails on all input
-
-
Method Detail
-
resolve
PrivateKey resolve(SessionContext session, String keyType, byte[] keyData) throws IOException, GeneralSecurityException
- Parameters:
session- TheSessionContextfor invoking this load command - may benullif not invoked within a session context (e.g., offline tool or session unknown).keyType- TheOpenSSHreported key typekeyData- TheOpenSSHencoded key data- Returns:
- The extracted
PrivateKey- ignored ifnull - Throws:
IOException- If failed to parse the key dataGeneralSecurityException- If failed to generate the key
-
-