Class SimpleGeneratorHostKeyProvider
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
-
- org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider
-
- org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider
-
- All Implemented Interfaces:
AlgorithmNameProvider
,KeyIdentityProvider
,KeyPairProvider
,KeySizeIndicator
public class SimpleGeneratorHostKeyProvider extends AbstractGeneratorHostKeyProvider
TODO Add javadoc- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider
DEFAULT_ALGORITHM, DEFAULT_ALLOWED_TO_OVERWRITE
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
EMPTY_KEYS_PROVIDER
-
Fields inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSA
-
-
Constructor Summary
Constructors Constructor Description SimpleGeneratorHostKeyProvider()
SimpleGeneratorHostKeyProvider(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterable<KeyPair>
doReadKeyPairs(SessionContext session, NamedResource resourceKey, InputStream inputStream)
protected void
doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream)
-
Methods inherited from class org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider
clearLoadedKeys, generateKeyPair, getAlgorithm, getKeySize, getKeySpec, getPath, isOverwriteAllowed, loadFromFile, loadKeys, readKeyPairs, resolveKeyPairs, setAlgorithm, setKeySize, setKeySpec, setOverwriteAllowed, setPath, writeKeyPair
-
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, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider
getKeyTypes, loadKey
-
-
-
-
Constructor Detail
-
SimpleGeneratorHostKeyProvider
public SimpleGeneratorHostKeyProvider()
-
SimpleGeneratorHostKeyProvider
public SimpleGeneratorHostKeyProvider(Path path)
-
-
Method Detail
-
doReadKeyPairs
protected Iterable<KeyPair> doReadKeyPairs(SessionContext session, NamedResource resourceKey, InputStream inputStream) throws IOException, GeneralSecurityException
- Overrides:
doReadKeyPairs
in classAbstractGeneratorHostKeyProvider
- Throws:
IOException
GeneralSecurityException
-
doWriteKeyPair
protected void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException
- Specified by:
doWriteKeyPair
in classAbstractGeneratorHostKeyProvider
- Throws:
IOException
GeneralSecurityException
-
-