Uses of Class
com.sshtools.j2ssh.transport.publickey.SshPublicKey
-
-
Uses of SshPublicKey in com.sshtools.common.automate
Methods in com.sshtools.common.automate with parameters of type SshPublicKey Modifier and Type Method Description void
AuthorizedKeys. addKey(java.lang.String username, SshPublicKey key)
boolean
RemoteIdentification. configureUserAccess(SftpClient sftp, java.lang.String serverId, java.lang.String system, java.lang.String username, SshPublicKey pk, java.lang.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 SshPublicKey Modifier and Type Method Description void
DialogKnownHostsKeyVerification. onHostKeyMismatch(java.lang.String host, SshPublicKey recorded, SshPublicKey actual)
void
DialogKnownHostsKeyVerification. onUnknownHost(java.lang.String host, SshPublicKey key)
boolean
AbstractHostKeyVerification. verifyHost(java.lang.String host, SshPublicKey pk)
-
Uses of SshPublicKey in com.sshtools.j2ssh
Methods in com.sshtools.j2ssh that return SshPublicKey Modifier and Type Method Description SshPublicKey
SshClient. getServerHostKey()
Returns the server's public key supplied during key exchange.Methods in com.sshtools.j2ssh with parameters of type SshPublicKey Modifier and Type Method Description boolean
SshClient. acceptsKey(java.lang.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 SshPublicKey Modifier and Type Method Description SshPublicKey
KeyStore. elementAt(int i)
Methods in com.sshtools.j2ssh.agent with parameters of type SshPublicKey Modifier and Type Method Description boolean
AgentAuthenticationClient. acceptsKey(AuthenticationProtocolClient authentication, java.lang.String username, java.lang.String serviceToStart, SshPublicKey key)
boolean
KeyStore. addKey(SshPrivateKey prvkey, SshPublicKey pubkey, java.lang.String description, KeyConstraints cs)
void
SshAgentClient. addKey(SshPrivateKey prvkey, SshPublicKey pubkey, java.lang.String description, KeyConstraints constraints)
Add a key to the agentboolean
KeyStore. deleteKey(SshPublicKey pubkey, java.lang.String description)
void
SshAgentClient. deleteKey(SshPublicKey key, java.lang.String description)
Delete a key held by the agentjava.lang.String
KeyStore. getDescription(SshPublicKey key)
KeyConstraints
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, java.util.List forwardingNodes, byte[] data)
-
Uses of SshPublicKey in com.sshtools.j2ssh.authentication
Methods in com.sshtools.j2ssh.authentication with parameters of type SshPublicKey Modifier and Type Method Description boolean
PublicKeyAuthenticationClient. acceptsKey(AuthenticationProtocolClient authentication, java.lang.String username, java.lang.String serviceToStart, SshPublicKey key)
-
Uses of SshPublicKey in com.sshtools.j2ssh.transport
Fields in com.sshtools.j2ssh.transport declared as SshPublicKey Modifier and Type Field Description protected SshPublicKey
TransportProtocolClient. pk
Methods in com.sshtools.j2ssh.transport that return SshPublicKey Modifier and Type Method Description SshPublicKey
TransportProtocolClient. getServerHostKey()
Methods in com.sshtools.j2ssh.transport with parameters of type SshPublicKey Modifier and Type Method Description void
AbstractKnownHostsKeyVerification. allowHost(java.lang.String host, SshPublicKey pk, boolean always)
Allows a host key, optionally recording the key to the known_hosts file.abstract void
AbstractKnownHostsKeyVerification. onHostKeyMismatch(java.lang.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(java.lang.String host, SshPublicKey pk, SshPublicKey actual)
Prompts the user through the console to verify the host key.abstract void
AbstractKnownHostsKeyVerification. onUnknownHost(java.lang.String host, SshPublicKey key)
Called by theverifyHost
method when the host key supplied is not recorded in the known_hosts file.void
ConsoleKnownHostsKeyVerification. onUnknownHost(java.lang.String host, SshPublicKey pk)
Prompts the user through the console to verify the host key.boolean
AbstractKnownHostsKeyVerification. verifyHost(java.lang.String host, SshPublicKey pk)
Verifies a host key against the list of known_hosts.boolean
HostKeyVerification. verifyHost(java.lang.String host, SshPublicKey pk)
Called by the transport protocol to verify the identity of the server through the supplied public key.boolean
IgnoreHostKeyVerification. verifyHost(java.lang.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 SshPublicKey Modifier and Type Method Description abstract SshPublicKey
SshKeyPair. decodePublicKey(byte[] encoded)
static SshPublicKey
SshKeyPairFactory. decodePublicKey(byte[] encoded)
SshPublicKey
SshKeyPair. getPublicKey()
abstract SshPublicKey
SshPrivateKey. getPublicKey()
SshPublicKey
SshKeyPair. setPublicKey(byte[] encoded)
SshPublicKey
SshPublicKeyFile. toPublicKey()
Methods in com.sshtools.j2ssh.transport.publickey with parameters of type SshPublicKey Modifier and Type Method Description static 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.dsa Modifier and Type Class Description class
SshDssPublicKey
Methods in com.sshtools.j2ssh.transport.publickey.dsa that return SshPublicKey Modifier and Type Method Description SshPublicKey
SshDssKeyPair. decodePublicKey(byte[] encoded)
-
Uses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.rsa
Subclasses of SshPublicKey in com.sshtools.j2ssh.transport.publickey.rsa Modifier and Type Class Description class
SshRsaPublicKey
Methods in com.sshtools.j2ssh.transport.publickey.rsa that return SshPublicKey Modifier and Type Method Description SshPublicKey
SshRsaKeyPair. decodePublicKey(byte[] encoded)
SshPublicKey
SshRsaPrivateKey. getPublicKey()
-