Interface KeyTypeNamesSupport

    • Method Detail

      • getSupportedKeyTypes

        java.util.NavigableSet<java.lang.String> getSupportedKeyTypes()
        Returns:
        The case insensitive NavigableSet of OpenSSH key type names that are supported by this decoder - e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384. This is not a single name - e.g., ECDSA keys have several curve names. Caveat: this collection may be un-modifiable...
      • findSupporterByKeyTypeName

        static <S extends KeyTypeNamesSupport> S findSupporterByKeyTypeName​(java.lang.String typeName,
                                                                            java.util.Collection<? extends S> supporters)
        Type Parameters:
        S - Generic supporter type
        Parameters:
        typeName - The OpenSSH key type e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384. Ignored if null/empty.
        supporters - The KeyTypeNamesSupport-ers to query - ignored if null/empty.
        Returns:
        The first instance whose getSupportedKeyTypes() contains the type name.