Interface KeyTypeNamesSupport
-
- All Known Subinterfaces:
Identity
,IdentityResourceLoader<PUB,PRV>
,KeyEntryResolver<PUB,PRV>
,PrivateKeyEntryDecoder<PUB,PRV>
,PublicKeyEntryDecoder<PUB,PRV>
,PuttyKeyPairResourceParser<PUB,PRV>
- All Known Implementing Classes:
AbstractIdentityResourceLoader
,AbstractKeyEntryResolver
,AbstractPrivateKeyEntryDecoder
,AbstractPublicKeyEntryDecoder
,AbstractPuttyKeyDecoder
,BuiltinIdentities
,DSSPublicKeyEntryDecoder
,DSSPuttyKeyDecoder
,ECDSAPublicKeyEntryDecoder
,ECDSAPuttyKeyDecoder
,Ed25519PublicKeyDecoder
,EdDSAPuttyKeyDecoder
,OpenSSHCertificateDecoder
,OpenSSHDSSPrivateKeyEntryDecoder
,OpenSSHECDSAPrivateKeyEntryDecoder
,OpenSSHEd25519PrivateKeyEntryDecoder
,OpenSSHRSAPrivateKeyDecoder
,RSAPublicKeyDecoder
,RSAPuttyKeyDecoder
,SkECDSAPublicKeyEntryDecoder
,SkED25519PublicKeyEntryDecoder
,Ssh2PublicKeyEntryDecoder
- 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 KeyTypeNamesSupport
TODO Add javadoc
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <S extends KeyTypeNamesSupport>
SfindSupporterByKeyTypeName(java.lang.String typeName, java.util.Collection<? extends S> supporters)
java.util.NavigableSet<java.lang.String>
getSupportedKeyTypes()
-
-
-
Method Detail
-
getSupportedKeyTypes
java.util.NavigableSet<java.lang.String> getSupportedKeyTypes()
- Returns:
- The case insensitive
NavigableSet
ofOpenSSH
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
- TheOpenSSH
key type e.g.,ssh-rsa, ssh-dss, ecdsa-sha2-nistp384
. Ignored ifnull
/empty.supporters
- TheKeyTypeNamesSupport
-ers to query - ignored ifnull
/empty.- Returns:
- The first instance whose
getSupportedKeyTypes()
contains the type name.
-
-