@FunctionalInterface public interface KeyTypeNamesSupport
Modifier and Type | Method and Description |
---|---|
static <S extends KeyTypeNamesSupport> |
findSupporterByKeyTypeName(String typeName,
Collection<? extends S> supporters) |
NavigableSet<String> |
getSupportedKeyTypes() |
NavigableSet<String> getSupportedKeyTypes()
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...static <S extends KeyTypeNamesSupport> S findSupporterByKeyTypeName(String typeName, Collection<? extends S> supporters)
S
- Generic supporter typetypeName
- 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.getSupportedKeyTypes()
contains the type name.Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.