Class AbstractIdentityResourceLoader<PUB extends PublicKey,PRV extends PrivateKey>
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.config.keys.impl.AbstractIdentityResourceLoader<PUB,PRV>
-
- Type Parameters:
PUB- Generic public key typePRV- Generic private key type
- All Implemented Interfaces:
IdentityResourceLoader<PUB,PRV>,KeyTypeNamesSupport
- Direct Known Subclasses:
AbstractKeyEntryResolver
public abstract class AbstractIdentityResourceLoader<PUB extends PublicKey,PRV extends PrivateKey> extends AbstractLoggingBean implements IdentityResourceLoader<PUB,PRV>
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.config.keys.IdentityResourceLoader
MAX_BIGINT_OCTETS_COUNT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIdentityResourceLoader(Class<PUB> pubType, Class<PRV> prvType, Collection<String> keyTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<PRV>getPrivateKeyType()Class<PUB>getPublicKeyType()NavigableSet<String>getSupportedKeyTypes()
-
-
-
Method Detail
-
getPublicKeyType
public final Class<PUB> getPublicKeyType()
- Specified by:
getPublicKeyTypein interfaceIdentityResourceLoader<PUB extends PublicKey,PRV extends PrivateKey>- Returns:
- The
Classof thePublicKeythat is the result of decoding
-
getPrivateKeyType
public final Class<PRV> getPrivateKeyType()
- Specified by:
getPrivateKeyTypein interfaceIdentityResourceLoader<PUB extends PublicKey,PRV extends PrivateKey>- Returns:
- The
Classof thePrivateKeythat matches the public one
-
getSupportedKeyTypes
public NavigableSet<String> getSupportedKeyTypes()
- Specified by:
getSupportedKeyTypesin interfaceKeyTypeNamesSupport- Returns:
- The case insensitive
NavigableSetofOpenSSHkey 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...
-
-