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 HostKeyIdentityProviderstatic HostKeyIdentityProvider
-
Method Details
-
loadHostKeys
Iterable<? extends Map.Entry<KeyPair,List<X509Certificate>>> loadHostKeys(SessionContext session) throws IOException, 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:
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:
IOExceptionGeneralSecurityException
-
wrap
-
wrap
-