Top Fields Constructors Methods
org.apache.sshd.common.util.security.bouncycastle

public Class BouncyCastleGeneratorHostKeyProvider

extends AbstractGeneratorHostKeyProvider
Class Inheritance
Imports
java.io.IOException, .OutputStream, .OutputStreamWriter, java.nio.charset.StandardCharsets, java.nio.file.Files, .OpenOption, .Path, java.security.GeneralSecurityException, .KeyPair, org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.io.IoUtils, org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider, org.bouncycastle.openssl.jcajce.JcaPEMWriter

Author
Apache MINA SSHD Project

Field Summary

Inherited from org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider:
DEFAULT_ALGORITHMDEFAULT_ALLOWED_TO_OVERWRITE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public static void
writePEMKeyPair(KeyPair kp, Path targetPath)

public static void
writePEMKeyPair(KeyPair kp, Path targetPath, OpenOption... options)

public static void
Inherited from org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider:
clearLoadedKeysdoReadKeyPairsgenerateKeyPairgetAlgorithmgetKeySizegetKeySpecgetPathhasStrictFilePermissionsisOverwriteAllowedloadFromFileloadKeysreadKeyPairsresolveKeyPairssetAlgorithmsetFilePermissionssetKeySizesetKeySpecsetOverwriteAllowedsetPathsetStrictFilePermissionswriteKeyPair

Constructor Detail

BouncyCastleGeneratorHostKeyProviderback to summary
public BouncyCastleGeneratorHostKeyProvider(Path path)

Method Detail

doWriteKeyPairback to summary
protected void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException

Implements abstract org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider.doWriteKeyPair.

Annotations
@Override
writePEMKeyPairback to summary
public static void writePEMKeyPair(KeyPair kp, Path targetPath) throws IOException
writePEMKeyPairback to summary
public static void writePEMKeyPair(KeyPair kp, Path targetPath, OpenOption... options) throws IOException
writePEMKeyPairback to summary
public static void writePEMKeyPair(KeyPair kp, OutputStream outputStream) throws IOException