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 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 - The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool).
        Returns:
        The host keys as a Map.Entry of key + certificates (which can be null/empty)
        Throws:
        java.io.IOException - If failed to load the keys
        java.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