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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Iterator
<? extends Map.Entry<KeyPair, List<X509Certificate>>> iteratorOf
(SessionContext session, HostKeyIdentityProvider provider) Iterable
<? extends Map.Entry<KeyPair, List<X509Certificate>>> loadHostKeys
(SessionContext session) static HostKeyIdentityProvider
static HostKeyIdentityProvider
-
Method Details
-
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
-
wrap
-