@FunctionalInterface public interface HostKeyIdentityProvider
Modifier and Type | Method and 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<KeyPair> pairs) |
static HostKeyIdentityProvider |
wrap(KeyPair... pairs) |
Iterable<? extends Map.Entry<KeyPair,List<X509Certificate>>> loadHostKeys(SessionContext session) throws IOException, GeneralSecurityException
session
- The SessionContext
for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool).Map.Entry
of key + certificates (which can
be null
/empty)IOException
- If failed to load the keysGeneralSecurityException
- If failed to parse the keysstatic Iterator<? extends Map.Entry<KeyPair,List<X509Certificate>>> iteratorOf(SessionContext session, HostKeyIdentityProvider provider) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
static HostKeyIdentityProvider wrap(KeyPair... pairs)
static HostKeyIdentityProvider wrap(Iterable<KeyPair> pairs)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.