Uses of Class
com.sshtools.common.ssh.SshException
Packages that use SshException
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 SshException in com.sshtools.common.auth
Methods in com.sshtools.common.auth that throw SshExceptionModifier and TypeMethodDescriptionvoidAbstractPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidAuthorizedKeysPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidOpenSshCertificateAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidPublicKeyAuthenticationAdapter.add(SshPublicKey key, String comment, SshConnection con) voidPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidUniversalAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidOpenSshCertificateAuthenticationProvider.addCAKey(SshPublicKey caKey) voidAbstractPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidAuthorizedKeysPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidOpenSshCertificateAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidPublicKeyAuthenticationAdapter.remove(SshPublicKey key, SshConnection con) voidPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidUniversalAuthenticationProvider.remove(SshPublicKey key, SshConnection con) booleanDefaultPublicKeyAuthenticationVerifier.verifySignature(SshPublicKey key, byte[] signature, byte[] data) booleanPublicKeyAuthenticationVerifier.verifySignature(SshPublicKey key, byte[] signature, byte[] data) -
Uses of SshException in com.sshtools.common.knownhosts
Methods in com.sshtools.common.knownhosts that throw SshExceptionModifier and TypeMethodDescriptionvoidKnownHostsKeyVerification.addEntry(SshPublicKey key, String comment, boolean always, String... names) voidKnownHostsKeyVerification.addEntry(SshPublicKey key, String comment, String... names) voidKnownHostsKeyVerification.allowHost(String host, SshPublicKey key, boolean always) booleanHostKeyUpdater.isKnownHost(String host, SshPublicKey key) booleanKnownHostsKeyVerification.isKnownHost(String host, SshPublicKey key) voidKnownHostsKeyVerification.load(InputStream in) protected voidConsoleKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actual) protected voidKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) protected voidKnownHostsKeyVerification.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) Called by theverifyHostmethod when the host key supplied by the host does not match the current key recording in the known hosts file.protected voidConsoleKnownHostsFile.onInvalidHostEntry(String entry) protected voidKnownHostsFile.onInvalidHostEntry(String entry) protected voidKnownHostsKeyVerification.onInvalidHostEntry(String entry) protected voidKnownHostsFile.onUnknownHost(String host, SshPublicKey key) protected voidKnownHostsKeyVerification.onUnknownHost(String host, SshPublicKey key) Called by theverifyHostmethod when the host key supplied is not recorded in the known_hosts file.voidKnownHostsKeyVerification.removeEntries(String host) Removes an allowed host.voidKnownHostsKeyVerification.removeEntries(String... hosts) voidHostKeyUpdater.updateHostKey(String host, SshPublicKey key) voidKnownHostsKeyVerification.updateHostKey(String host, SshPublicKey key) booleanHostKeyVerification.verifyHost(String host, SshPublicKey pk) Verify that the public key is acceptable for the host.booleanHostKeyVerificationManager.verifyHost(String host, SshPublicKey pk) booleanKnownHostsKeyVerification.verifyHost(String host, SshPublicKey pk) Verifies a host key against the list of known_hosts.protected booleanKnownHostsKeyVerification.verifyHost(String host, SshPublicKey pk, boolean validateUnknown) booleanX509HostKeyVerification.verifyHost(String host, SshPublicKey pk) Constructors in com.sshtools.common.knownhosts that throw SshExceptionModifierConstructorDescriptionConsoleKnownHostsFile(File file) ConsoleKnownHostsFile(Path file) KnownHostsFile(File file) KnownHostsFile(Path file) KnownHostsKeyVerification(String knownhosts) -
Uses of SshException in com.sshtools.common.publickey
Methods in com.sshtools.common.publickey that throw SshExceptionModifier and TypeMethodDescriptionprotected voidOpenSshCertificate.decodeCertificate(com.sshtools.common.util.ByteArrayReader reader) protected abstract voidOpenSshCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) protected voidOpenSshCertificate.encodeCertificate(com.sshtools.common.util.ByteArrayWriter writer) 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) KeyGenerator.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 SshCertificateSshCertificateAuthority.generateUserCertificate(SshKeyPair key, long serial, String principalName, int validityDays, SshKeyPair signedBy) byte[]OpenSshCertificate.getEncoded()final StringOpenSshCertificate.getFingerprint()OpenSshCertificate.init(byte[] blob, int start, int len) 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) byte[]SignatureGenerator.sign(SshPublicKey key, String signingAlgorithm, byte[] data) Sign the data using the private key of the public key provided.voidOpenSshCertificate.verify() -
Uses of SshException in com.sshtools.common.sftp.extensions
Methods in com.sshtools.common.sftp.extensions that throw SshExceptionModifier and TypeMethodDescriptionprotected byte[]AbstractDigestExtension.doHash(String algorithm, byte[] handle, long startOffset, long length, SftpSubsystem sftp) protected byte[]AbstractDigestExtension.doHash(String algorithm, String filename, long startOffset, long length, SftpSubsystem sftp) protected byte[]AbstractMD5Extension.doMD5Hash(byte[] handle, long startOffset, long length, byte[] quickCheckHash, SftpSubsystem sftp) protected byte[]AbstractMD5Extension.doMD5Hash(String filename, long startOffset, long length, byte[] quickCheckHash, SftpSubsystem sftp) -
Uses of SshException in com.sshtools.common.ssh
Methods in com.sshtools.common.ssh that return SshExceptionMethods in com.sshtools.common.ssh that throw SshExceptionModifier and TypeMethodDescriptionstatic StringSshKeyFingerprint.getFingerprint(byte[] encoded) Generate an SSH key fingerprint as defined in draft-ietf-secsh-fingerprint-00.txt.static StringSshKeyFingerprint.getFingerprint(byte[] encoded, String algorithm) Generate an SSH key fingerprint with a specific algorithm.Constructors in com.sshtools.common.ssh with parameters of type SshExceptionModifierConstructorDescriptionSshIOException(SshException realEx) Construct the exception with the real exception. -
Uses of SshException in com.sshtools.common.ssh.components
Methods in com.sshtools.common.ssh.components that throw SshExceptionModifier and TypeMethodDescriptionComponentFactory.changePositionofAlgorithm(String name, int position) voidComponentFactory.configureSecurityLevel(SecurityLevel securityLevel) abstract SshDsaPrivateKeyComponentManager.createDsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) Create an instance of a DSA private key.abstract SshDsaPublicKeyComponentManager.createDsaPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) Create an instance of a DSA public key.ComponentFactory.createNewOrdering(int[] ordering) abstract SshRsaPrivateCrtKeyComponentManager.createRsaPrivateCrtKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger crtCoefficient) Create an instance of an RSA co-effecient private key.abstract SshRsaPrivateCrtKeyComponentManager.createRsaPrivateCrtKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) Create an instance of an RSA co-efficent private key.abstract SshRsaPrivateKeyComponentManager.createRsaPrivateKey(BigInteger modulus, BigInteger privateExponent) Create an instance of an RSA private key.abstract SshRsaPublicKeyComponentManager.createRsaPublicKey(BigInteger modulus, BigInteger publicExponent) Create an instance of an RSA public key.abstract SshRsaPublicKeyComponentManager.createSsh2RsaPublicKey()Create an instance of an SSH2 RSA public key.SshRsaPrivateCrtKey.doPrivate(BigInteger input) SshRsaPublicKey.doPublic(BigInteger input) abstract 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.byte[]SshPublicKey.getEncoded()Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key.SshPublicKey.getFingerprint()Return an SSH fingerprint of the public keyComponentFactory.getInstance(String name) Get a new instance of a supported component.abstract SshSecureRandomGeneratorComponentManager.getRND()Get the secure random number generator.protected voidComponentManager.init()voidNoneHmac.init(byte[] keydata) voidSshHmac.init(byte[] keydata) default SshPublicKeySshPublicKey.init(byte[] blob) SshPublicKey.init(byte[] blob, int start, int len) Initialize the public key from a blob of binary data.voidSshSecureRandomGenerator.nextBytes(byte[] bytes, int off, int len) voidComponentFactory.selectStrongestComponent(String[] remoteAlgs) voidComponentManager.setMinimumSecurityLevel(SecurityLevel securityLevel) byte[]SshKeyPair.sign(SshPublicKey key, String signingAlgorithm, byte[] data) voidSshKeyExchangeLegacy.test()booleanSshPublicKey.verifySignature(byte[] signature, byte[] data) Verify the signature. -
Uses of SshException in com.sshtools.common.ssh.components.jce
Methods in com.sshtools.common.ssh.components.jce that throw SshExceptionModifier and TypeMethodDescriptionJCEComponentManager.createDsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) JCEComponentManager.createDsaPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) JCEComponentManager.createRsaPrivateCrtKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger crtCoefficient) JCEComponentManager.createRsaPrivateCrtKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) JCEComponentManager.createRsaPrivateKey(BigInteger modulus, BigInteger privateExponent) JCEComponentManager.createRsaPublicKey(BigInteger modulus, BigInteger publicExponent) JCEComponentManager.createSsh2RsaPublicKey()protected voidOpenSshEcdsaCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) protected voidOpenSshEd25519Certificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) protected voidOpenSshRsaCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) protected voidOpenSshRsaSha256Certificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) protected voidOpenSshRsaSha512Certificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) Ssh2RsaPrivateCrtKey.doPrivate(BigInteger input) OpenSshRsaCertificate.doPublic(BigInteger input) OpenSshRsaSha256Certificate.doPublic(BigInteger input) OpenSshRsaSha512Certificate.doPublic(BigInteger input) Ssh2RsaPublicKey.doPublic(BigInteger input) JCEComponentManager.generateDsaKeyPair(int bits) JCEComponentManager.generateEcdsaKeyPair(int bits) JCEComponentManager.generateEd25519KeyPair()JCEComponentManager.generateEd448KeyPair()JCEComponentManager.generateRsaKeyPair(int bits, int version) byte[]Ssh2DsaPublicKey.getEncoded()Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key.byte[]Ssh2EcdsaSha2NistPublicKey.getEncoded()byte[]Ssh2RsaPublicKey.getEncoded()byte[]SshEd25519PublicKeyJCE.getEncoded()byte[]SshEd448PublicKeyJCE.getEncoded()Ssh2DsaPublicKey.getFingerprint()Ssh2EcdsaSha2NistPublicKey.getFingerprint()Ssh2RsaPublicKey.getFingerprint()SshEd25519PublicKeyJCE.getFingerprint()SshEd448PublicKeyJCE.getFingerprint()JCEComponentManager.getRND()voidAbstractHmac.init(byte[] keydata) voidHmacRipeMd160.init(byte[] keydata) voidHmacRipeMd160ETM.init(byte[] keydata) voidHmacSha1.init(byte[] keydata) voidHmacSha196.init(byte[] keydata) voidHmacSha1ETM.init(byte[] keydata) voidHmacSha256_at_ssh_dot_com.init(byte[] keydata) voidHmacSha256.init(byte[] keydata) voidHmacSha256ETM.init(byte[] keydata) voidHmacSha512.init(byte[] keydata) voidHmacSha512ETM.init(byte[] keydata) Ssh2DsaPublicKey.init(byte[] blob, int start, int len) Initialize the public key from a blob of binary data.Ssh2EcdsaSha2NistPublicKey.init(byte[] blob, int start, int len) Ssh2RsaPublicKey.init(byte[] blob, int start, int len) SshEd25519PublicKeyJCE.init(byte[] blob, int start, int len) SshEd448PublicKeyJCE.init(byte[] blob, int start, int len) voidSecureRND.nextBytes(byte[] bytes, int off, int len) booleanOpenSshEcdsaCertificate.verifySignature(byte[] signature, byte[] data) booleanOpenSshEd25519Certificate.verifySignature(byte[] signature, byte[] data) Verify the signature.booleanOpenSshRsaCertificate.verifySignature(byte[] signature, byte[] data) booleanOpenSshRsaSha256Certificate.verifySignature(byte[] signature, byte[] data) booleanOpenSshRsaSha512Certificate.verifySignature(byte[] signature, byte[] data) booleanSsh2DsaPublicKey.verifySignature(byte[] signature, byte[] data) Verify the signature.booleanSsh2EcdsaSha2NistPublicKey.verifySignature(byte[] signature, byte[] data) booleanSsh2RsaPublicKey.verifySignature(byte[] signature, byte[] data) booleanSshEd25519PublicKeyJCE.verifySignature(byte[] signature, byte[] data) booleanSshEd448PublicKeyJCE.verifySignature(byte[] signature, byte[] data) Constructors in com.sshtools.common.ssh.components.jce that throw SshExceptionModifierConstructorDescriptionSsh2DsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) -
Uses of SshException in com.sshtools.common.sshd
Methods in com.sshtools.common.sshd that throw SshException