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
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Iterator<? extends java.util.Map.Entry<java.security.KeyPair,java.util.List<java.security.cert.X509Certificate>>>
iteratorOf(SessionContext session, HostKeyIdentityProvider provider)
java.lang.Iterable<? extends java.util.Map.Entry<java.security.KeyPair,java.util.List<java.security.cert.X509Certificate>>>
loadHostKeys(SessionContext session)
static HostKeyIdentityProvider
wrap(java.lang.Iterable<? extends java.security.KeyPair> pairs)
static HostKeyIdentityProvider
wrap(java.security.KeyPair... pairs)
-
-
-
Method Detail
-
loadHostKeys
java.lang.Iterable<? extends java.util.Map.Entry<java.security.KeyPair,java.util.List<java.security.cert.X509Certificate>>> loadHostKeys(SessionContext session) throws java.io.IOException, java.security.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:
java.io.IOException
- If failed to load the keysjava.security.GeneralSecurityException
- If failed to parse the keys
-
iteratorOf
static java.util.Iterator<? extends java.util.Map.Entry<java.security.KeyPair,java.util.List<java.security.cert.X509Certificate>>> iteratorOf(SessionContext session, HostKeyIdentityProvider provider) throws java.io.IOException, java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
wrap
static HostKeyIdentityProvider wrap(java.security.KeyPair... pairs)
-
wrap
static HostKeyIdentityProvider wrap(java.lang.Iterable<? extends java.security.KeyPair> pairs)
-
-