| Package | Description |
|---|---|
| com.sshtools.common.publickey |
| Modifier and Type | Method and Description |
|---|---|
static void |
SshPrivateKeyFileFactory.changePassphrase(java.io.File keyFile,
java.lang.String passphrase,
java.lang.String newPassphrase)
Take a file in any of the supported public key formats and convert to the
requested format.
|
void |
SshPrivateKeyFile.changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassprase)
Change the passphrase of the key file.
|
void |
OpenSSHPrivateKeyFile.changePassphrase(java.lang.String oldpassphrase,
java.lang.String newpassphrase) |
static void |
SshPrivateKeyFileFactory.convertFile(java.io.File keyFile,
java.lang.String passphrase,
int toFormat,
java.io.File toFile)
Take a file in any of the supported public key formats and convert to the
requested format.
|
static SshCertificate |
SshKeyUtils.getCertificate(java.io.File privateKey,
java.lang.String passphrase) |
static SshCertificate |
SshKeyUtils.getCertificate(java.io.File privateKey,
java.lang.String passphrase,
java.io.File certFile) |
static SshCertificate |
SshKeyUtils.getCertificate(java.io.InputStream privateKey,
java.lang.String passphrase,
java.io.InputStream certFile) |
static SshCertificate |
SshKeyUtils.getCertificate(java.lang.String privateKey,
java.lang.String passphrase,
java.lang.String certFile) |
static SshKeyPair |
SshKeyUtils.getCertificateAndKey(java.io.File privateKey,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getPrivateKey(java.io.File key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getPrivateKey(java.io.InputStream key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getPrivateKey(java.lang.String formattedKey,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA256Signature(java.io.File key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA256Signature(java.io.InputStream key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA256Signature(java.lang.String formattedKey,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA512Signature(java.io.File key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA512Signature(java.io.InputStream key,
java.lang.String passphrase) |
static SshKeyPair |
SshKeyUtils.getRSAPrivateKeyWithSHA512Signature(java.lang.String formattedKey,
java.lang.String passphrase) |
SshKeyPair |
SshPrivateKeyFile.toKeyPair(java.lang.String passphrase)
Decode the private key using the users passphrase.
|
SshKeyPair |
OpenSSHPrivateKeyFile.toKeyPair(java.lang.String passphrase) |
Copyright © 2022. All rights reserved.