Uses of Class
com.sshtools.common.ssh.components.SshKeyPair
Packages that use SshKeyPair
Package
Description
This package contains an abstract cryptographic provider for the SSH protocol.
This package contains a set of algoritm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
-
Uses of SshKeyPair in com.sshtools.common.auth
Methods in com.sshtools.common.auth that return SshKeyPairModifier and TypeMethodDescriptionInMemoryMutualKeyAuthenticationStore.getPrivateKey(SshConnection con) MutualKeyAuthenticatonStore.getPrivateKey(SshConnection con) Methods in com.sshtools.common.auth with parameters of type SshKeyPairModifier and TypeMethodDescriptionInMemoryMutualKeyAuthenticationStore.addKey(String username, SshKeyPair privateKey, SshPublicKey publicKey) -
Uses of SshKeyPair in com.sshtools.common.publickey
Methods in com.sshtools.common.publickey that return SshKeyPairModifier and TypeMethodDescriptionKeyGenerator.generateKey(int bits) static SshKeyPairSshKeyPairGenerator.generateKeyPair(String algorithm) Generate a new key pair using the default bit size.static SshKeyPairSshKeyPairGenerator.generateKeyPair(String algorithm, int bits) Generates a new key pair.static SshKeyPairSshKeyUtils.getCertificateAndKey(File privateKey, String passphrase) static SshKeyPairSshKeyUtils.getPrivateKey(File key) static SshKeyPairSshKeyUtils.getPrivateKey(File key, PassphrasePrompt prompt) static SshKeyPairSshKeyUtils.getPrivateKey(File key, String passphrase) static SshKeyPairSshKeyUtils.getPrivateKey(InputStream key, String passphrase) static SshKeyPairSshKeyUtils.getPrivateKey(String formattedKey, PassphrasePrompt prompt) static SshKeyPairSshKeyUtils.getPrivateKey(String formattedKey, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA256Signature(File key, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA256Signature(InputStream key, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA256Signature(String formattedKey, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA512Signature(File key, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA512Signature(InputStream key, String passphrase) static SshKeyPairSshKeyUtils.getRSAPrivateKeyWithSHA512Signature(String formattedKey, String passphrase) static SshKeyPairSshKeyUtils.makeRSAWithSHA256Signature(SshKeyPair pair) static SshKeyPairSshKeyUtils.makeRSAWithSHA512Signature(SshKeyPair pair) Decode the private key using the users passphrase.Methods in com.sshtools.common.publickey with parameters of type SshKeyPairModifier and TypeMethodDescriptionstatic SshPrivateKeyFileSshPrivateKeyFileFactory.create(SshKeyPair pair) static SshPrivateKeyFileSshPrivateKeyFileFactory.create(SshKeyPair pair, String passphrase) static SshPrivateKeyFileSshPrivateKeyFileFactory.create(SshKeyPair pair, String passphrase, int format) static SshPrivateKeyFileSshPrivateKeyFileFactory.create(SshKeyPair pair, String passphrase, String comment) static SshPrivateKeyFileSshPrivateKeyFileFactory.create(SshKeyPair pair, String passphrase, String comment, int format) static voidSshPrivateKeyFileFactory.createFile(SshKeyPair key, String passphrase, int format, File toFile) Take a SshPrivateKey and write it to a file.static voidSshPrivateKeyFileFactory.createFile(SshKeyPair key, String passphrase, File toFile) static voidSshKeyUtils.createPrivateKeyFile(SshKeyPair pair, String passphrase, File file) static voidSshKeyUtils.createPrivateKeyFile(SshKeyPair pair, String passphrase, File file, int format) voidOpenSSHPrivateKeyFileParser.decode(com.sshtools.common.util.ByteArrayReader privateReader, SshKeyPair pair) voidOpenSSHPrivateKeyFileParser.encode(com.sshtools.common.util.ByteArrayWriter privateWriter, SshKeyPair pair) byte[]OpenSSHPrivateKeyFile.encryptKey(SshKeyPair pair, String passphrase) static SshCertificateSshCertificateAuthority.generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, SshKeyPair signedBy) static SshCertificateSshCertificateAuthority.generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificateSshCertificateAuthority.generateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validity, int validityTimeUnit, TimeZone timeZone, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificateSshCertificateAuthority.generateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validityDays, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificateSshCertificateAuthority.generateHostCertificate(SshKeyPair key, long serial, String hostname, int validityDays, SshKeyPair signedBy) static SshCertificateSshCertificateAuthority.generateUserCertificate(SshKeyPair key, long serial, String principalName, int validityDays, SshKeyPair signedBy) static StringSshKeyUtils.getFormattedKey(SshKeyPair pair, String passphrase) static SshKeyPairSshKeyUtils.makeRSAWithSHA256Signature(SshKeyPair pair) static SshKeyPairSshKeyUtils.makeRSAWithSHA512Signature(SshKeyPair pair) static voidSshKeyUtils.savePrivateKey(SshKeyPair pair, String passphrase, String comment, File privateKeyFile) voidOpenSshCertificate.sign(SshPublicKey publicKey, com.sshtools.common.util.UnsignedInteger64 serial, int type, String keyId, List<String> validPrincipals, com.sshtools.common.util.UnsignedInteger64 validAfter, com.sshtools.common.util.UnsignedInteger64 validBefore, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signingKey) Constructors in com.sshtools.common.publickey with parameters of type SshKeyPairModifierConstructorDescriptionOpenSSHPrivateKeyFile(SshKeyPair pair, String passphrase, String comment) -
Uses of SshKeyPair in com.sshtools.common.ssh.components
Subclasses of SshKeyPair in com.sshtools.common.ssh.componentsMethods in com.sshtools.common.ssh.components that return SshKeyPairModifier and TypeMethodDescriptionabstract SshKeyPairComponentManager.generateDsaKeyPair(int bits) Generate a new DSA public/private key pair.abstract SshKeyPairComponentManager.generateEcdsaKeyPair(int bits) Generate a new ECDSA key pair.abstract SshKeyPairComponentManager.generateEd25519KeyPair()abstract SshKeyPairComponentManager.generateEd448KeyPair()abstract SshKeyPairComponentManager.generateRsaKeyPair(int bits, int version) Generate an RSA public/private pair.static SshKeyPairSshKeyPair.getKeyPair(SshPrivateKey prv, SshPublicKey pub) Wraps a public/private key pair into an SshKeyPair instance.Constructors in com.sshtools.common.ssh.components with parameters of type SshKeyPair -
Uses of SshKeyPair in com.sshtools.common.ssh.components.jce
Methods in com.sshtools.common.ssh.components.jce that return SshKeyPairModifier and TypeMethodDescriptionJCEComponentManager.generateDsaKeyPair(int bits) JCEComponentManager.generateEcdsaKeyPair(int bits) JCEComponentManager.generateEd25519KeyPair()JCEComponentManager.generateEd448KeyPair()JCEComponentManager.generateRsaKeyPair(int bits, int version)