Class AbstractIdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.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
,AbstractPuttyKeyDecoder
public abstract class AbstractIdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey> extends AbstractLoggingBean implements IdentityResourceLoader<PUB,PRV>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<PRV>
prvType
private java.lang.Class<PUB>
pubType
private java.util.NavigableSet<java.lang.String>
types
-
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 protected
AbstractIdentityResourceLoader(java.lang.Class<PUB> pubType, java.lang.Class<PRV> prvType, java.util.Collection<java.lang.String> keyTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<PRV>
getPrivateKeyType()
java.lang.Class<PUB>
getPublicKeyType()
java.util.NavigableSet<java.lang.String>
getSupportedKeyTypes()
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
Method Detail
-
getPublicKeyType
public final java.lang.Class<PUB> getPublicKeyType()
- Specified by:
getPublicKeyType
in interfaceIdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey>
- Returns:
- The
Class
of thePublicKey
that is the result of decoding
-
getPrivateKeyType
public final java.lang.Class<PRV> getPrivateKeyType()
- Specified by:
getPrivateKeyType
in interfaceIdentityResourceLoader<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey>
- Returns:
- The
Class
of thePrivateKey
that matches the public one
-
getSupportedKeyTypes
public java.util.NavigableSet<java.lang.String> getSupportedKeyTypes()
- Specified by:
getSupportedKeyTypes
in interfaceKeyTypeNamesSupport
- 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...
-
-