public class BouncyCastleGeneratorHostKeyProvider extends AbstractGeneratorHostKeyProvider
DEFAULT_ALGORITHM, DEFAULT_ALLOWED_TO_OVERWRITE
log
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSA
EMPTY_KEYS_PROVIDER
Constructor and Description |
---|
BouncyCastleGeneratorHostKeyProvider(java.nio.file.Path path) |
Modifier and Type | Method and Description |
---|---|
protected void |
doWriteKeyPair(NamedResource resourceKey,
java.security.KeyPair kp,
java.io.OutputStream outputStream) |
static void |
writePEMKeyPair(java.security.KeyPair kp,
java.io.OutputStream outputStream) |
static void |
writePEMKeyPair(java.security.KeyPair kp,
java.nio.file.Path targetPath) |
static void |
writePEMKeyPair(java.security.KeyPair kp,
java.nio.file.Path targetPath,
java.nio.file.OpenOption... options) |
clearLoadedKeys, doReadKeyPairs, generateKeyPair, getAlgorithm, getKeySize, getKeySpec, getPath, isOverwriteAllowed, loadFromFile, loadKeys, readKeyPairs, resolveKeyPairs, setAlgorithm, setKeySize, setKeySpec, setOverwriteAllowed, setPath, writeKeyPair
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyTypes, loadKey, wrap, wrap
exhaustCurrentIdentities, isEmpty, iterableOf, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairs
public BouncyCastleGeneratorHostKeyProvider(java.nio.file.Path path)
protected void doWriteKeyPair(NamedResource resourceKey, java.security.KeyPair kp, java.io.OutputStream outputStream) throws java.io.IOException, java.security.GeneralSecurityException
doWriteKeyPair
in class AbstractGeneratorHostKeyProvider
java.io.IOException
java.security.GeneralSecurityException
public static void writePEMKeyPair(java.security.KeyPair kp, java.nio.file.Path targetPath) throws java.io.IOException
java.io.IOException
public static void writePEMKeyPair(java.security.KeyPair kp, java.nio.file.Path targetPath, java.nio.file.OpenOption... options) throws java.io.IOException
java.io.IOException
public static void writePEMKeyPair(java.security.KeyPair kp, java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException