public class SimpleGeneratorHostKeyProvider extends AbstractGeneratorHostKeyProvider
KeyPairProvider.Utils
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 |
---|
SimpleGeneratorHostKeyProvider() |
SimpleGeneratorHostKeyProvider(File file) |
SimpleGeneratorHostKeyProvider(Path path) |
Modifier and Type | Method and Description |
---|---|
protected KeyPair |
doReadKeyPair(String resourceKey,
InputStream inputStream) |
protected void |
doWriteKeyPair(String resourceKey,
KeyPair kp,
OutputStream outputStream) |
generateKeyPair, getAlgorithm, getKeySize, getKeySpec, getPath, isOverwriteAllowed, loadKeys, readKeyPair, setAlgorithm, setFile, setKeySize, setKeySpec, setOverwriteAllowed, setPath, writeKeyPair
getKeyTypes, loadKey
public SimpleGeneratorHostKeyProvider()
public SimpleGeneratorHostKeyProvider(File file)
public SimpleGeneratorHostKeyProvider(Path path)
protected KeyPair doReadKeyPair(String resourceKey, InputStream inputStream) throws IOException, GeneralSecurityException
doReadKeyPair
in class AbstractGeneratorHostKeyProvider
IOException
GeneralSecurityException
protected void doWriteKeyPair(String resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException
doWriteKeyPair
in class AbstractGeneratorHostKeyProvider
IOException
GeneralSecurityException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.