Uses of Class
com.sshtools.j2ssh.transport.publickey.SshPublicKey
Packages that use SshPublicKey
Package
Description
-
Uses of SshPublicKey in com.sshtools.common.automate
Methods in com.sshtools.common.automate with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoid
AuthorizedKeys.addKey
(String username, SshPublicKey key) boolean
RemoteIdentification.configureUserAccess
(SftpClient sftp, String serverId, String system, String username, SshPublicKey pk, String authorizationFile, int mode) boolean
AuthorizedKeys.containsKey
(SshPublicKey key) void
AuthorizedKeys.removeKey
(SshPublicKey key) -
Uses of SshPublicKey in com.sshtools.common.hosts
Methods in com.sshtools.common.hosts with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoid
DialogKnownHostsKeyVerification.onHostKeyMismatch
(String host, SshPublicKey recorded, SshPublicKey actual) void
DialogKnownHostsKeyVerification.onUnknownHost
(String host, SshPublicKey key) boolean
AbstractHostKeyVerification.verifyHost
(String host, SshPublicKey pk) -
Uses of SshPublicKey in com.sshtools.j2ssh
Methods in com.sshtools.j2ssh that return SshPublicKeyModifier and TypeMethodDescriptionSshClient.getServerHostKey()
Returns the server's public key supplied during key exchange.Methods in com.sshtools.j2ssh with parameters of type SshPublicKeyModifier and TypeMethodDescriptionboolean
SshClient.acceptsKey
(String username, SshPublicKey key) Determine whether a private/public key pair will be accepted for public key authentication. -
Uses of SshPublicKey in com.sshtools.j2ssh.agent
Methods in com.sshtools.j2ssh.agent that return SshPublicKeyMethods in com.sshtools.j2ssh.agent with parameters of type SshPublicKeyModifier and TypeMethodDescriptionboolean
AgentAuthenticationClient.acceptsKey
(AuthenticationProtocolClient authentication, String username, String serviceToStart, SshPublicKey key) boolean
KeyStore.addKey
(SshPrivateKey prvkey, SshPublicKey pubkey, String description, KeyConstraints cs) void
SshAgentClient.addKey
(SshPrivateKey prvkey, SshPublicKey pubkey, String description, KeyConstraints constraints) Add a key to the agentboolean
KeyStore.deleteKey
(SshPublicKey pubkey, String description) void
SshAgentClient.deleteKey
(SshPublicKey key, String description) Delete a key held by the agentKeyStore.getDescription
(SshPublicKey key) KeyStore.getKeyConstraints
(SshPublicKey key) byte[]
SshAgentClient.hashAndSign
(SshPublicKey key, byte[] data) Request a hash and sign operation be performed for a given public key.int
KeyStore.indexOf
(SshPublicKey key) byte[]
KeyStore.performHashAndSign
(SshPublicKey pubkey, List forwardingNodes, byte[] data) -
Uses of SshPublicKey in com.sshtools.j2ssh.authentication
Methods in com.sshtools.j2ssh.authentication with parameters of type SshPublicKeyModifier and TypeMethodDescriptionboolean
PublicKeyAuthenticationClient.acceptsKey
(AuthenticationProtocolClient authentication, String username, String serviceToStart, SshPublicKey key) -
Uses of SshPublicKey in com.sshtools.j2ssh.transport
Fields in com.sshtools.j2ssh.transport declared as SshPublicKeyMethods in com.sshtools.j2ssh.transport that return SshPublicKeyMethods in com.sshtools.j2ssh.transport with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoid
AbstractKnownHostsKeyVerification.allowHost
(String host, SshPublicKey pk, boolean always) Allows a host key, optionally recording the key to the known_hosts file.abstract void
AbstractKnownHostsKeyVerification.onHostKeyMismatch
(String host, SshPublicKey allowedHostKey, SshPublicKey actualHostKey) Called by theverifyHost
method when the host key supplied by the host does not match the current key recording in the known hosts file.void
ConsoleKnownHostsKeyVerification.onHostKeyMismatch
(String host, SshPublicKey pk, SshPublicKey actual) Prompts the user through the console to verify the host key.abstract void
AbstractKnownHostsKeyVerification.onUnknownHost
(String host, SshPublicKey key) Called by theverifyHost
method when the host key supplied is not recorded in the known_hosts file.void
ConsoleKnownHostsKeyVerification.onUnknownHost
(String host, SshPublicKey pk) Prompts the user through the console to verify the host key.boolean
AbstractKnownHostsKeyVerification.verifyHost
(String host, SshPublicKey pk) Verifies a host key against the list of known_hosts.boolean
HostKeyVerification.verifyHost
(String host, SshPublicKey pk) Called by the transport protocol to verify the identity of the server through the supplied public key.boolean
IgnoreHostKeyVerification.verifyHost
(String host, SshPublicKey pk) Simply returnstrue
to all requests. -
Uses of SshPublicKey in com.sshtools.j2ssh.transport.publickey
Methods in com.sshtools.j2ssh.transport.publickey that return SshPublicKeyModifier and TypeMethodDescriptionabstract SshPublicKey
SshKeyPair.decodePublicKey
(byte[] encoded) static SshPublicKey
SshKeyPairFactory.decodePublicKey
(byte[] encoded) SshKeyPair.getPublicKey()
abstract SshPublicKey
SshPrivateKey.getPublicKey()
SshKeyPair.setPublicKey
(byte[] encoded) SshPublicKeyFile.toPublicKey()
Methods in com.sshtools.j2ssh.transport.publickey with parameters of type SshPublicKeyModifier and TypeMethodDescriptionstatic SshPublicKeyFile
SshPublicKeyFile.create
(SshPublicKey key, SshPublicKeyFormat format) -
Uses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.dsa
Subclasses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.dsaMethods in com.sshtools.j2ssh.transport.publickey.dsa that return SshPublicKey -
Uses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.rsa
Subclasses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.rsaMethods in com.sshtools.j2ssh.transport.publickey.rsa that return SshPublicKeyModifier and TypeMethodDescriptionSshRsaKeyPair.decodePublicKey
(byte[] encoded) SshRsaPrivateKey.getPublicKey()