Class AbstractKeyEntryResolver<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>
-
- org.apache.sshd.common.config.keys.impl.AbstractKeyEntryResolver<PUB,PRV>
-
- Type Parameters:
PUB
- Type ofPublicKey
PRV
- Type ofPrivateKey
- All Implemented Interfaces:
IdentityResourceLoader<PUB,PRV>
,KeyEntryResolver<PUB,PRV>
,KeyTypeNamesSupport
- Direct Known Subclasses:
AbstractPrivateKeyEntryDecoder
,AbstractPublicKeyEntryDecoder
public abstract class AbstractKeyEntryResolver<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey> extends AbstractIdentityResourceLoader<PUB,PRV> implements KeyEntryResolver<PUB,PRV>
-
-
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 protected
AbstractKeyEntryResolver(java.lang.Class<PUB> pubType, java.lang.Class<PRV> prvType, java.util.Collection<java.lang.String> names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PRV
generatePrivateKey(java.security.spec.KeySpec keySpec)
PUB
generatePublicKey(java.security.spec.KeySpec keySpec)
java.lang.String
toString()
-
Methods inherited from class org.apache.sshd.common.config.keys.impl.AbstractIdentityResourceLoader
getPrivateKeyType, getPublicKeyType, getSupportedKeyTypes
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.config.keys.IdentityResourceLoader
getPrivateKeyType, getPublicKeyType
-
Methods inherited from interface org.apache.sshd.common.config.keys.KeyEntryResolver
cloneKeyPair, clonePrivateKey, clonePublicKey, generateKeyPair, getKeyFactoryInstance, getKeyPairGenerator
-
Methods inherited from interface org.apache.sshd.common.config.keys.KeyTypeNamesSupport
getSupportedKeyTypes
-
-
-
-
Method Detail
-
generatePublicKey
public PUB generatePublicKey(java.security.spec.KeySpec keySpec) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
generatePrivateKey
public PRV generatePrivateKey(java.security.spec.KeySpec keySpec) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-