Interface HostKeyIdentityProvider
-
- 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 HostKeyIdentityProvider
- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Iterator<? extends Map.Entry<KeyPair,List<X509Certificate>>>
iteratorOf(SessionContext session, HostKeyIdentityProvider provider)
Iterable<? extends Map.Entry<KeyPair,List<X509Certificate>>>
loadHostKeys(SessionContext session)
static HostKeyIdentityProvider
wrap(Iterable<? extends KeyPair> pairs)
static HostKeyIdentityProvider
wrap(KeyPair... pairs)
-
-
-
Method Detail
-
loadHostKeys
Iterable<? extends Map.Entry<KeyPair,List<X509Certificate>>> loadHostKeys(SessionContext session) throws IOException, GeneralSecurityException
- Parameters:
session
- TheSessionContext
for invoking this load command - may benull
if not invoked within a session context (e.g., offline tool).- Returns:
- The host keys as a
Map.Entry
of key + certificates (which can benull
/empty) - Throws:
IOException
- If failed to load the keysGeneralSecurityException
- If failed to parse the keys
-
iteratorOf
static Iterator<? extends Map.Entry<KeyPair,List<X509Certificate>>> iteratorOf(SessionContext session, HostKeyIdentityProvider provider) throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
wrap
static HostKeyIdentityProvider wrap(KeyPair... pairs)
-
wrap
static HostKeyIdentityProvider wrap(Iterable<? extends KeyPair> pairs)
-
-