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 HostKeyIdentityProviderwrap(java.lang.Iterable<java.security.KeyPair> pairs)static HostKeyIdentityProviderwrap(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- TheSessionContextfor invoking this load command - may benullif not invoked within a session context (e.g., offline tool).- Returns:
- The host keys as a
Map.Entryof 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.IOExceptionjava.security.GeneralSecurityException
-
wrap
static HostKeyIdentityProvider wrap(java.security.KeyPair... pairs)
-
wrap
static HostKeyIdentityProvider wrap(java.lang.Iterable<java.security.KeyPair> pairs)
-
-