Top Description Methods
org.apache.sshd.common.config.keys

public Interface KeyTypeNamesSupport

Known Direct Subinterfaces
org.apache.sshd.common.config.keys.Identity, org.apache.sshd.common.config.keys.IdentityResourceLoader
Known Direct Implementers
org.apache.sshd.common.config.keys.loader.ssh2.Ssh2PublicKeyEntryDecoder
Annotations
@FunctionalInterface
Imports
java.util.Collection, .Collections, .NavigableSet, org.apache.sshd.common.util.GenericUtils

TODO Add javadoc
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public static <
Generic supporter type
S extends KeyTypeNamesSupport
>
S

Returns:

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

public NavigableSet<String>

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...

getSupportedKeyTypes
()

Method Detail

findSupporterByKeyTypeNameback to summary
public static <S extends KeyTypeNamesSupport> S findSupporterByKeyTypeName(String typeName, Collection<? extends S> supporters)
Parameters
<S>
Generic supporter type
typeName:String

The OpenSSH key type e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384. Ignored if null/empty.

supporters:Collection<? extends S>

The KeyTypeNamesSupport-ers to query - ignored if null/empty.

Returns:S

The first instance whose getSupportedKeyTypes() contains the type name.

getSupportedKeyTypesback to summary
public NavigableSet<String> getSupportedKeyTypes()
Returns:NavigableSet<String>

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...