Class BouncyCastleGeneratorHostKeyProvider
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.common.util.security.bouncycastle.BouncyCastleGeneratorHostKeyProvider
- All Implemented Interfaces:
AlgorithmNameProvider, KeyIdentityProvider, KeyPairProvider, KeySizeIndicator
-
Field Summary
Fields inherited from class AbstractGeneratorHostKeyProvider
DEFAULT_ALGORITHM, DEFAULT_ALLOWED_TO_OVERWRITEFields inherited from class AbstractLoggingBean
logFields inherited from interface KeyIdentityProvider
EMPTY_KEYS_PROVIDERFields inherited from interface 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) static voidwritePEMKeyPair(KeyPair kp, OutputStream outputStream) static voidwritePEMKeyPair(KeyPair kp, Path targetPath) static voidwritePEMKeyPair(KeyPair kp, Path targetPath, OpenOption... options) Methods inherited from class AbstractGeneratorHostKeyProvider
clearLoadedKeys, doReadKeyPairs, generateKeyPair, getAlgorithm, getKeySize, getKeySpec, getPath, hasStrictFilePermissions, isOverwriteAllowed, loadFromFile, loadKeys, readKeyPairs, resolveKeyPairs, setAlgorithm, setFilePermissions, setKeySize, setKeySpec, setOverwriteAllowed, setPath, setStrictFilePermissions, writeKeyPairMethods inherited from class AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface KeyPairProvider
getKeyTypes, loadKey
-
Constructor Details
-
BouncyCastleGeneratorHostKeyProvider
-
-
Method Details
-
doWriteKeyPair
protected void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException - Specified by:
doWriteKeyPairin classAbstractGeneratorHostKeyProvider- Throws:
IOExceptionGeneralSecurityException
-
writePEMKeyPair
- Throws:
IOException
-
writePEMKeyPair
public static void writePEMKeyPair(KeyPair kp, Path targetPath, OpenOption... options) throws IOException - Throws:
IOException
-
writePEMKeyPair
- Throws:
IOException
-