Class OpenSSHKeyPairProvider
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
-
- org.apache.karaf.shell.ssh.keygenerator.OpenSSHKeyPairProvider
-
- All Implemented Interfaces:
org.apache.sshd.common.keyprovider.KeyIdentityProvider,org.apache.sshd.common.keyprovider.KeyPairProvider
public class OpenSSHKeyPairProvider extends org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
-
-
Field Summary
-
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_DSS_CERT, SSH_ECDSA_SHA2_NISTP256_CERT, SSH_ECDSA_SHA2_NISTP384_CERT, SSH_ECDSA_SHA2_NISTP521_CERT, SSH_ED25519, SSH_ED25519_CERT, SSH_RSA, SSH_RSA_CERT
-
-
Constructor Summary
Constructors Constructor Description OpenSSHKeyPairProvider(Path privateKeyPath, Path publicKeyPath, String algorithm, int keySize, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<KeyPair>loadKeys(org.apache.sshd.common.session.SessionContext sessionContext)-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Method Detail
-
loadKeys
public Iterable<KeyPair> loadKeys(org.apache.sshd.common.session.SessionContext sessionContext) throws IOException, GeneralSecurityException
- Throws:
IOExceptionGeneralSecurityException
-
-