public class BouncyCastleGeneratorHostKeyProvider extends AbstractGeneratorHostKeyProvider
DEFAULT_ALGORITHM, DEFAULT_ALLOWED_TO_OVERWRITElogECDSA_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_CERTEMPTY_KEYS_PROVIDER| Constructor and Description |
|---|
BouncyCastleGeneratorHostKeyProvider(Path path) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doWriteKeyPair(NamedResource resourceKey,
KeyPair kp,
OutputStream outputStream) |
static void |
writePEMKeyPair(KeyPair kp,
OutputStream outputStream) |
static void |
writePEMKeyPair(KeyPair kp,
Path targetPath) |
static void |
writePEMKeyPair(KeyPair kp,
Path targetPath,
OpenOption... options) |
clearLoadedKeys, doReadKeyPairs, generateKeyPair, getAlgorithm, getKeySize, getKeySpec, getPath, isOverwriteAllowed, loadFromFile, loadKeys, readKeyPairs, resolveKeyPairs, setAlgorithm, setKeySize, setKeySpec, setOverwriteAllowed, setPath, writeKeyPairdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyTypes, loadKey, wrap, wrapexhaustCurrentIdentities, isEmpty, iterableOf, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairspublic BouncyCastleGeneratorHostKeyProvider(Path path)
protected void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException
doWriteKeyPair in class AbstractGeneratorHostKeyProviderIOExceptionGeneralSecurityExceptionpublic static void writePEMKeyPair(KeyPair kp, Path targetPath) throws IOException
IOExceptionpublic static void writePEMKeyPair(KeyPair kp, Path targetPath, OpenOption... options) throws IOException
IOExceptionpublic static void writePEMKeyPair(KeyPair kp, OutputStream outputStream) throws IOException
IOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.