@FunctionalInterface
public interface KeyTypeNamesSupport
| Modifier and Type | Method and Description |
|---|---|
static <S extends KeyTypeNamesSupport> |
findSupporterByKeyTypeName(java.lang.String typeName,
java.util.Collection<? extends S> supporters) |
java.util.NavigableSet<java.lang.String> |
getSupportedKeyTypes() |
java.util.NavigableSet<java.lang.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(java.lang.String typeName, java.util.Collection<? extends S> supporters)
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.getSupportedKeyTypes() contains the type name.