Interface KeyTypeIndicator

  • All Known Implementing Classes:
    AuthorizedKeyEntry, ECCurves, PublicKeyEntry
    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 KeyTypeIndicator
    • Method Detail

      • getKeyType

        java.lang.String getKeyType()
        Returns:
        The SSH key type name - e.g., "ssh-rsa", "sshd-dss" etc.
      • groupByKeyType

        static <I extends KeyTypeIndicator> java.util.NavigableMap<java.lang.String,​java.util.List<I>> groupByKeyType​(java.util.Collection<? extends I> indicators)
        Type Parameters:
        I - The KeyTypeIndicator
        Parameters:
        indicators - The indicators to group
        Returns:
        A NavigableMap where key=the case insensitive key type, value = the List of all indicators having the same key type