Package | Description |
---|---|
callback | |
com.sshtools.client | |
com.sshtools.client.components | |
com.sshtools.client.sftp | |
com.sshtools.client.shell | |
com.sshtools.client.tasks | |
com.sshtools.common.nio | |
com.sshtools.common.publickey | |
com.sshtools.common.ssh | |
com.sshtools.common.ssh.components |
This package contains an abstract cryptographic provider for the SSH protocol.
|
com.sshtools.common.ssh.components.jce |
This package contains a set of algorithm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
|
com.sshtools.server | |
com.sshtools.server.auth | |
com.sshtools.server.components |
This package contains the specific server components required by the Maverick SSHD server.
|
com.sshtools.server.components.jce |
This package contains a set of algoritm implementations that enable the Maverick SSHD
to use a Java Cryptography Extension provider.
|
vanilla |
Modifier and Type | Method and Description |
---|---|
SshServerContext |
ReverseSSHD.createContext(SshEngineContext daemonContext,
SocketChannel sc) |
Modifier and Type | Method and Description |
---|---|
RequestFuture |
SessionChannel.executeCommand(String cmd) |
protected void |
TransportProtocolClient.initializeKeyExchange(SshKeyExchange<SshClientContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
abstract boolean |
SshKeyExchangeClient.processMessage(byte[] msg)
Process a key exchange message
|
byte[] |
SignatureGenerator.sign(SshPublicKey key,
byte[] data)
Sign the data using the private key of the public key provided.
|
byte[] |
PublicKeyAuthenticator.sign(SshPublicKey key,
byte[] data) |
int |
ConnectionProtocolClient.startLocalForwarding(String addressToBind,
int portToBind,
String destinationHost,
int destinationPort)
Start local port forwarding.
|
int |
ConnectionProtocolClient.startRemoteForwarding(String addressToBind,
int portToBind,
String destinationHost,
int destinationPort)
Start remote port forwarding.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DiffieHellmanGroupExchangeSha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
protected void |
DiffieHellmanGroup1Sha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
protected void |
DiffieHellmanGroup14Sha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
boolean |
DiffieHellmanGroupExchangeSha1JCE.exchangeGroup(ByteArrayReader msg) |
void |
DiffieHellmanGroupExchangeSha1JCE.init(TransportProtocol<SshClientContext> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
void |
DiffieHellmanGroup1Sha1JCE.init(TransportProtocol<SshClientContext> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
void |
DiffieHellmanGroup14Sha1JCE.init(TransportProtocol<SshClientContext> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
boolean |
DiffieHellmanGroupExchangeSha1JCE.processMessage(byte[] m) |
boolean |
DiffieHellmanGroup1Sha1JCE.processMessage(byte[] m) |
boolean |
DiffieHellmanGroup14Sha1JCE.processMessage(byte[] m) |
void |
DiffieHellmanGroupExchangeSha1JCE.test() |
void |
DiffieHellmanGroup1Sha1JCE.test() |
void |
DiffieHellmanGroup14Sha1JCE.test() |
Modifier and Type | Method and Description |
---|---|
boolean |
SftpFile.canRead()
Determine whether the user has read access to the file.
|
boolean |
SftpFile.canWrite()
Determine whether the user has write access to the file.
|
void |
SftpClientTask.cd(String dir)
Changes the working directory on the remote server, or the user's default
directory if
null or any empty string is provided as the
directory path. |
void |
SftpClientTask.cdup()
Change the working directory to the parent directory
|
void |
AbstractSftpTask.changePermissions(SftpFile file,
int permissions)
Change the permissions of a file.
|
void |
AbstractSftpTask.changePermissions(String filename,
int permissions)
Change the permissions of a file.
|
void |
AbstractSftpTask.changePermissions(String filename,
String permissions)
Change the permissions of a file.
|
void |
SftpClientTask.chgrp(String gid,
String path)
Sets the group ID for the file or directory.
|
void |
SftpClientTask.chmod(int permissions,
String path)
Changes the access permissions or modes of the specified file or
directory.
|
void |
SftpClientTask.chown(String uid,
String path)
Sets the user ID to owner for the file or directory.
|
void |
SftpFile.close()
Close the file.
|
void |
AbstractSftpTask.closeFile(SftpFile file)
Close a file or directory.
|
DirectoryOperation |
SftpClientTask.copyLocalDirectory(String localdir,
String remotedir,
boolean recurse,
boolean sync,
boolean commit,
FileTransferProgress progress)
Copy the contents of a local directory into a remote directory.
|
DirectoryOperation |
SftpClientTask.copyRemoteDirectory(String remotedir,
String localdir,
boolean recurse,
boolean sync,
boolean commit,
FileTransferProgress progress)
Copy the contents of a remote directory to a local directory
|
void |
AbstractSftpTask.createLink(String targetpath,
String linkpath,
boolean symbolic)
Create a symbolic link.
|
void |
AbstractSftpTask.createSymbolicLink(String targetpath,
String linkpath)
Create a symbolic link.
|
void |
SftpFile.delete()
Delete this file/directory from the remote server.
|
protected void |
AbstractSftpTask.doSubsystemTask(SessionChannel session) |
void |
SftpClientTask.exit()
Close the SFTP client.
|
static String |
SftpClientTask.formatLongname(SftpFile file)
Format a String with the details of the file.
|
SftpFileAttributes |
SftpClientTask.get(String path)
Download the remote file to the local computer
|
SftpFileAttributes |
SftpClientTask.get(String path,
boolean resume)
Download the remote file to the local computer
|
SftpFileAttributes |
SftpClientTask.get(String path,
FileTransferProgress progress)
Download the remote file to the local computer.
|
SftpFileAttributes |
SftpClientTask.get(String path,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
OutputStream local)
Download the remote file into an OutputStream.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
OutputStream local,
FileTransferProgress progress)
Download the remote file writing it to the specified
OutputStream . |
SftpFileAttributes |
SftpClientTask.get(String remote,
OutputStream local,
FileTransferProgress progress,
long position)
Download the remote file writing it to the specified
OutputStream . |
SftpFileAttributes |
SftpClientTask.get(String remote,
OutputStream local,
long position)
Download the remote file into an OutputStream.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
String local)
Download the remote file into the local file.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
String local,
boolean resume)
Download the remote file into the local file.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
String local,
FileTransferProgress progress)
Download the remote file to the local computer.
|
SftpFileAttributes |
SftpClientTask.get(String remote,
String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
String |
AbstractSftpTask.getAbsolutePath(SftpFile file)
Get the absolute path of a file.
|
String |
SftpClientTask.getAbsolutePath(String path)
Get the absolute path for a file.
|
String |
AbstractSftpTask.getAbsolutePath(String path)
Get the absolute path of a file.
|
SftpFileAttributes |
SftpFile.getAttributes()
Get the files attributes.
|
SftpFileAttributes |
AbstractSftpTask.getAttributes(SftpFile file)
Get the attributes of a file.
|
SftpFileAttributes |
AbstractSftpTask.getAttributes(String path)
Get the attributes of a file.
|
protected SftpFileAttributes |
AbstractSftpTask.getAttributes(String path,
int messageId) |
String |
SftpClientTask.getDefaultDirectory()
Get the default directory (or HOME directory)
|
String |
AbstractSftpTask.getDefaultDirectory()
Gets the users default directory.
|
SftpFile |
AbstractSftpTask.getFile(String path)
Utility method to obtain an
SftpFile instance for a given path. |
SftpFile[] |
SftpClientTask.getFiles(String remote)
Download the remote files to the local computer
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
boolean resume)
Download the remote files to the local computer
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
FileTransferProgress progress)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
FileTransferProgress progress,
boolean resume)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
String local)
Download the remote files into the local file.
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
String local,
boolean resume)
Download the remote files into the local file.
|
SftpFile[] |
SftpClientTask.getFiles(String remote,
String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
InputStream |
SftpClientTask.getInputStream(String remotefile)
Create an InputStream for reading a remote file.
|
InputStream |
SftpClientTask.getInputStream(String remotefile,
long position)
Create an InputStream for reading a remote file.
|
SftpFileAttributes |
AbstractSftpTask.getLinkAttributes(String path)
Get the attributes of a file.
|
void |
AbstractSftpTask.getOKRequestStatus(UnsignedInteger32 requestId)
Verify that an OK status has been returned for a request id.
|
OutputStream |
SftpClientTask.getOutputStream(String remotefile)
Create an OutputStream for writing to a remote file.
|
SftpFile |
SftpFile.getParent()
Get the parent of the current file.
|
SftpMessage |
AbstractSftpTask.getResponse(UnsignedInteger32 requestId) |
String |
AbstractSftpTask.getSymbolicLinkTarget(String linkpath)
Get the target path of a symbolic link.
|
long |
DirectoryOperation.getTransferSize()
Get the total number of bytes that this operation will transfer
|
boolean |
SftpFile.isBlock()
Determine whether the file is pointing to a block special file.
|
boolean |
SftpFile.isCharacter()
Determine whether the file is pointing to a character mode device.
|
boolean |
SftpFile.isDirectory()
Determine whether the file object is pointing to a directory.
|
boolean |
SftpClientTask.isDirectoryOrLinkedDirectory(SftpFile file)
Determine whether the file object is pointing to a symbolic link that is
pointing to a directory.
|
boolean |
SftpFile.isFifo()
Determine whether the file is pointing to a pipe.
|
boolean |
SftpFile.isFile()
Determine whether the file object is pointing to a file.
|
boolean |
SftpFile.isLink()
Determine whether the file object is a symbolic link.
|
boolean |
SftpFile.isSocket()
Determine whether the file is pointing to a socket.
|
int |
AbstractSftpTask.listChildren(SftpFile file,
Vector<SftpFile> children)
List the children of a directory.
|
void |
AbstractSftpTask.lockFile(byte[] handle,
long offset,
long length,
int lockFlags) |
SftpFile[] |
SftpClientTask.ls()
List the contents of the current remote working directory.
|
SftpFile[] |
SftpClientTask.ls(String path)
List the contents remote directory.
|
void |
AbstractSftpTask.makeDirectory(String path)
Make a directory.
|
void |
AbstractSftpTask.makeDirectory(String path,
SftpFileAttributes attrs)
Make a directory.
|
String[] |
RegularExpressionMatching.matchFileNamesWithPattern(File[] files,
String fileNameRegExp)
returns each of the files that match the pattern fileNameRegExp
|
String[] |
Perl5RegExpMatching.matchFileNamesWithPattern(File[] files,
String fileNameRegExp)
compiles fileNameRegExp into a regular expression and pattern
matches on each file's name, and returns those that match.
|
String[] |
NoRegExpMatching.matchFileNamesWithPattern(File[] files,
String fileNameRegExp)
opens and returns the requested filename string
|
String[] |
GlobRegExpMatching.matchFileNamesWithPattern(File[] files,
String fileNameRegExp)
compiles fileNameRegExp into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
RegularExpressionMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns each of the SftpFiles that match the pattern fileNameRegExp
|
SftpFile[] |
Perl5RegExpMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
compiles fileNameRegExp into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
NoRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns files
|
SftpFile[] |
GlobRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
compiles fileNameRegExp into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
SftpClientTask.matchRemoteFiles(String remote)
Called by getFileMatches() to do regular expression pattern matching on
the files in 'remote''s parent directory.
|
void |
SftpClientTask.mkdir(String dir)
Creates a new directory on the remote server.
|
void |
SftpClientTask.mkdirs(String dir)
Create a directory or set of directories.
|
SftpFile |
AbstractSftpTask.openDirectory(String path)
Open a directory.
|
SftpFile |
SftpClientTask.openFile(String fileName) |
SftpFile |
AbstractSftpTask.openFile(String absolutePath,
int flags)
Open a file.
|
SftpFile |
AbstractSftpTask.openFile(String absolutePath,
int flags,
SftpFileAttributes attrs)
Open a file.
|
SftpFile |
AbstractSftpTask.openFileVersion5(String absolutePath,
int flags,
int accessFlags,
SftpFileAttributes attrs) |
void |
AbstractSftpTask.performOptimizedRead(byte[] handle,
long length,
int blocksize,
OutputStream out,
int outstandingRequests,
FileTransferProgress progress)
Performs an optimized read of a file through use of asynchronous
messages.
|
void |
AbstractSftpTask.performOptimizedRead(byte[] handle,
long length,
int blocksize,
OutputStream out,
int outstandingRequests,
FileTransferProgress progress,
long position)
Performs an optimized read of a file through use of asynchronous
messages.
|
void |
AbstractSftpTask.performOptimizedWrite(byte[] handle,
int blocksize,
int outstandingRequests,
InputStream in,
int buffersize,
FileTransferProgress progress)
Performs an optimized write of a file through asynchronous messaging and
through buffering the local file into memory.
|
void |
AbstractSftpTask.performOptimizedWrite(byte[] handle,
int blocksize,
int outstandingRequests,
InputStream in,
int buffersize,
FileTransferProgress progress,
long position)
Performs an optimized write of a file through asynchronous messaging and
through buffering the local file into memory.
|
void |
AbstractSftpTask.performSynchronousRead(byte[] handle,
int blocksize,
OutputStream out,
FileTransferProgress progress,
long position)
Perform a synchronous read of a file from the remote file system.
|
UnsignedInteger32 |
AbstractSftpTask.postReadRequest(byte[] handle,
long offset,
int len)
Post a read request to the server and return the request id; this is used
to optimize file downloads.
|
UnsignedInteger32 |
AbstractSftpTask.postWriteRequest(byte[] handle,
long position,
byte[] data,
int off,
int len)
Send a write request for an open file but do not wait for the response
from the server.
|
void |
SftpClientTask.put(InputStream in,
String remote)
Upload the contents of an InputStream to the remote computer.
|
void |
SftpClientTask.put(InputStream in,
String remote,
FileTransferProgress progress)
Upload a file to the remote computer reading from the specified
InputStream . |
void |
SftpClientTask.put(InputStream in,
String remote,
FileTransferProgress progress,
long position) |
void |
SftpClientTask.put(InputStream in,
String remote,
long position)
Upload the contents of an InputStream to the remote computer.
|
void |
SftpClientTask.put(String local)
Upload a file to the remote computer
|
void |
SftpClientTask.put(String local,
boolean resume)
Upload a file to the remote computer
|
void |
SftpClientTask.put(String local,
FileTransferProgress progress)
Upload a file to the remote computer.
|
void |
SftpClientTask.put(String local,
FileTransferProgress progress,
boolean resume)
Upload a file to the remote computer.
|
void |
SftpClientTask.put(String local,
String remote)
Upload a file to the remote computer
|
void |
SftpClientTask.put(String local,
String remote,
boolean resume)
Upload a file to the remote computer
|
void |
SftpClientTask.put(String local,
String remote,
FileTransferProgress progress)
Upload a file to the remote computer.
|
void |
SftpClientTask.put(String local,
String remote,
FileTransferProgress progress,
boolean resume)
Upload a file to the remote computer.
|
void |
SftpClientTask.putFiles(String local)
Upload the contents of an InputStream to the remote computer.
|
void |
SftpClientTask.putFiles(String local,
boolean resume)
Upload files to the remote computer
|
void |
SftpClientTask.putFiles(String local,
FileTransferProgress progress)
Upload files to the remote computer
|
void |
SftpClientTask.putFiles(String local,
FileTransferProgress progress,
boolean resume)
Upload files to the remote computer
|
void |
SftpClientTask.putFiles(String local,
String remote)
Upload files to the remote computer
|
void |
SftpClientTask.putFiles(String local,
String remote,
boolean resume)
Upload files to the remote computer
|
void |
SftpClientTask.putFiles(String local,
String remote,
FileTransferProgress progress)
Upload files to the remote computer.
|
void |
SftpClientTask.putFiles(String local,
String remote,
FileTransferProgress progress,
boolean resume)
make local copies of some of the variables, then call putfilematches,
which calls "put" on each file that matches the regexp local.
|
void |
SftpClientTask.quit()
Close the SFTP client.
|
int |
AbstractSftpTask.readFile(byte[] handle,
UnsignedInteger64 offset,
byte[] output,
int off,
int len)
Read a block of data from an open file.
|
void |
AbstractSftpTask.recurseMakeDirectory(String path)
Recurse through a hierarchy of directories creating them as necessary.
|
void |
AbstractSftpTask.removeDirectory(String path)
Remove an empty directory.
|
void |
AbstractSftpTask.removeFile(String filename)
Remove a file.
|
void |
SftpClientTask.rename(String oldpath,
String newpath)
Rename a file on the remote computer.
|
void |
AbstractSftpTask.renameFile(String oldpath,
String newpath)
Rename an existing file.
|
void |
AbstractSftpTask.renameFile(String oldpath,
String newpath,
int flags) |
void |
SftpClientTask.rm(String path)
Remove a file or directory from the remote computer.
|
void |
SftpClientTask.rm(String path,
boolean force,
boolean recurse)
Remove a file or directory on the remote computer with options to force
deletion of existing files and recursion.
|
SftpMessage |
AbstractSftpTask.sendExtensionMessage(String request,
byte[] requestData)
Send an extension message and return the response.
|
void |
AbstractSftpTask.setAttributes(SftpFile file,
SftpFileAttributes attrs)
Sets the attributes of a file.
|
void |
AbstractSftpTask.setAttributes(String path,
SftpFileAttributes attrs)
Sets the attributes of a file.
|
void |
AbstractSftpTask.setCharsetEncoding(String charset)
Allows the default character encoding to be overriden for filename
strings.
|
SftpFileAttributes |
SftpClientTask.stat(String path)
Returns the attributes of the file from the remote computer.
|
SftpFileAttributes |
SftpClientTask.statLink(String path)
Returns the attributes of the link from the remote computer.
|
void |
SftpClientTask.symlink(String path,
String link)
Create a symbolic link on the remote computer.
|
void |
SftpClientTask.umask(String umask)
Sets the umask for this client.
|
void |
AbstractSftpTask.unlockFile(byte[] handle,
long offset,
long length) |
boolean |
SftpClientTask.verifyFiles(String localFile,
String remoteFile)
Verify a local and remote file.
|
boolean |
SftpClientTask.verifyFiles(String localFile,
String remoteFile,
long offset,
long length)
Verify a local and remote file.
|
void |
AbstractSftpTask.writeFile(byte[] handle,
UnsignedInteger64 offset,
byte[] data,
int off,
int len)
Write a block of data to an open file.
|
Constructor and Description |
---|
SftpFileInputStream(SftpFile file) |
SftpFileInputStream(SftpFile file,
long position)
Creates a new SftpFileInputStream object.
|
SftpFileOutputStream(SftpFile file)
Creates a new SftpFileOutputStream object.
|
Modifier and Type | Method and Description |
---|---|
void |
Shell.close() |
ShellProcess |
Shell.executeCommand(String origCmd) |
ShellProcess |
Shell.executeCommand(String origCmd,
boolean consume) |
ShellProcess |
Shell.executeCommand(String origCmd,
boolean matchPromptMarker,
boolean consume) |
ShellProcess |
Shell.executeCommand(String origCmd,
boolean matchPromptMarker,
boolean consume,
String charset) |
ShellProcess |
Shell.executeCommand(String origCmd,
boolean consume,
String charset) |
ShellProcess |
Shell.executeCommand(String origCmd,
String charset) |
void |
Shell.exit() |
boolean |
ShellController.expect(String pattern)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine,
long timeout,
long maxLines)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expectNextLine(String pattern)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(String pattern,
boolean consumeRemainingLine)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(String pattern,
boolean consumeRemainingLine,
long timeout)
Perform expect on the next line of output only
|
String |
ShellReader.readLine()
Read a line of output from the process.
|
String |
ShellController.readLine() |
String |
ShellReader.readLine(long timeout)
Read a line of output from the process.
|
String |
ShellController.readLine(long timeout) |
Shell |
Shell.su(String cmd) |
Shell |
Shell.su(String cmd,
String password) |
Shell |
Shell.su(String cmd,
String password,
String promptExpression) |
Shell |
Shell.su(String cmd,
String password,
String promptExpression,
ShellMatcher matcher) |
ShellProcess |
Shell.sudo(String cmd,
String password) |
ShellProcess |
Shell.sudo(String cmd,
String password,
String promptExpression) |
ShellProcess |
Shell.sudo(String cmd,
String password,
String promptExpression,
ShellMatcher matcher) |
Constructor and Description |
---|
Shell(Connection<SshClientContext> con,
AbstractSessionTask session) |
Shell(Connection<SshClientContext> con,
AbstractSessionTask session,
ShellStartupTrigger trigger) |
Shell(Connection<SshClientContext> con,
AbstractSessionTask session,
ShellStartupTrigger trigger,
long startupTimeout) |
Modifier and Type | Method and Description |
---|---|
protected SessionChannel |
AbstractSubsystemTask.createSession() |
protected abstract void |
AbstractSubsystemTask.doSubsystemTask(SessionChannel session) |
byte[] |
AbstractSubsystemTask.nextMessage() |
void |
AbstractSubsystemTask.sendMessage(Packet msg) |
Modifier and Type | Method and Description |
---|---|
<K extends ProtocolContext> |
SshEngine.connect(String hostToConnect,
int portToConnect,
K protocolContext) |
T |
StaticContextFactory.createContext(SshEngineContext daemonContext,
SocketChannel sc) |
T |
ProtocolContextFactory.createContext(SshEngineContext daemonContext,
SocketChannel sc) |
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair(String algorithm,
int bits)
Generates a new key pair.
|
Modifier and Type | Method and Description |
---|---|
SshException |
SshIOException.getRealException()
Get the real exception
|
Modifier and Type | Method and Description |
---|---|
void |
SshContext.enableFIPSMode() |
static String |
SshKeyFingerprint.getFingerprint(byte[] encoded)
Generate an SSH key fingerprint as defined in
draft-ietf-secsh-fingerprint-00.txt.
|
static String |
SshKeyFingerprint.getFingerprint(byte[] encoded,
String algorithm)
Generate an SSH key fingerprint with a specific algorithm.
|
void |
SshKeyExchange.init(TransportProtocol<T> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
protected abstract void |
TransportProtocol.initializeKeyExchange(SshKeyExchange<T> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
boolean |
SshKeyExchange.processMessage(byte[] msg) |
void |
SshContext.setCipherPreferredPositionCS(String name,
int position) |
void |
SshContext.setCipherPreferredPositionSC(String name,
int position) |
void |
SshContext.setKeyExchangePreferredPosition(String name,
int position) |
void |
SshContext.setMacPreferredPositionCS(String name,
int position) |
void |
SshContext.setMacPreferredPositionSC(String name,
int position) |
void |
SshContext.setPreferredCipherCC(String[] order)
Set the preferred CS cipher order
|
void |
SshContext.setPreferredCipherCS(int[] order)
Set the preferred SC cipher order
|
void |
SshContext.setPreferredCipherCS(String name)
Set the preferred cipher for the Client->Server stream.
|
void |
SshContext.setPreferredCipherSC(int[] order)
Set the preferred SC cipher order
|
void |
SshContext.setPreferredCipherSC(String name)
Set the preferred cipher for the Server->Client stream.
|
void |
SshContext.setPreferredCipherSC(String[] order)
Set the preferred SC cipher order
|
void |
SshContext.setPreferredKeyExchange(String name)
Set the preferred key exchange method.
|
void |
SshContext.setPreferredKeyExchange(String[] order) |
void |
SshContext.setPreferredMacCS(int[] order)
Set the preferred CS Mac order
|
void |
SshContext.setPreferredMacCS(String name)
Set the preferred MAC for the Client->Server stream.
|
void |
SshContext.setPreferredMacCS(String[] order) |
void |
SshContext.setPreferredMacSC(int[] order)
Set the preferred SC Mac order
|
void |
SshContext.setPreferredMacSC(String name)
Set the preferred mac for the Server->Client stream.
|
void |
SshContext.setPreferredMacSC(String[] order) |
void |
SshContext.setPublicKeyPreferredPosition(String name,
int position) |
int |
ForwardingManager.startListening(String addressToBind,
int portToBind,
Connection<T> con,
SocketListeningForwardingFactoryImpl<T> forwardingFactory) |
void |
SshKeyExchange.test() |
Constructor and Description |
---|
SshIOException(SshException realEx)
Construct the exception with the real exception.
|
Modifier and Type | Method and Description |
---|---|
String |
ComponentFactory.changePositionofAlgorithm(String name,
int position) |
abstract SshDsaPrivateKey |
ComponentManager.createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y)
Create an instance of a DSA private key.
|
abstract SshDsaPublicKey |
ComponentManager.createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
Create an instance of a DSA public key.
|
String |
ComponentFactory.createNewOrdering(int[] ordering) |
abstract SshRsaPrivateCrtKey |
ComponentManager.createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient)
Create an instance of an RSA co-effecient private key.
|
abstract SshRsaPrivateCrtKey |
ComponentManager.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 SshRsaPrivateKey |
ComponentManager.createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent)
Create an instance of an RSA private key.
|
abstract SshRsaPublicKey |
ComponentManager.createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent)
Create an instance of an RSA public key.
|
abstract SshRsaPublicKey |
ComponentManager.createSsh2RsaPublicKey()
Create an instance of an SSH2 RSA public key.
|
BigInteger |
SshRsaPrivateCrtKey.doPrivate(BigInteger input) |
BigInteger |
SshRsaPublicKey.doPublic(BigInteger input) |
abstract SshKeyPair |
ComponentManager.generateDsaKeyPair(int bits)
Generate a new DSA public/private key pair.
|
abstract SshKeyPair |
ComponentManager.generateEcdsaKeyPair(int bits)
Generate a new ECDSA key pair.
|
abstract SshKeyPair |
ComponentManager.generateRsaKeyPair(int bits)
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.
|
String |
SshPublicKey.getFingerprint()
Return an SSH fingerprint of the public key
|
Object |
ComponentFactory.getInstance(String name)
Get a new instance of a supported component.
|
abstract SshSecureRandomGenerator |
ComponentManager.getRND()
Get the secure random number generator.
|
protected void |
ComponentManager.init() |
void |
SshHmac.init(byte[] keydata) |
void |
NoneHmac.init(byte[] keydata) |
void |
SshPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
SshSecureRandomGenerator.nextBytes(byte[] bytes,
int off,
int len) |
String |
ComponentFactory.order(String[] ordering) |
boolean |
SshPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
Modifier and Type | Method and Description |
---|---|
SshDsaPrivateKey |
JCEComponentManager.createDsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y) |
SshDsaPublicKey |
JCEComponentManager.createDsaPublicKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y) |
SshRsaPrivateCrtKey |
JCEComponentManager.createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger crtCoefficient) |
SshRsaPrivateCrtKey |
JCEComponentManager.createRsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient) |
SshRsaPrivateKey |
JCEComponentManager.createRsaPrivateKey(BigInteger modulus,
BigInteger privateExponent) |
SshRsaPublicKey |
JCEComponentManager.createRsaPublicKey(BigInteger modulus,
BigInteger publicExponent) |
SshRsaPublicKey |
JCEComponentManager.createSsh2RsaPublicKey() |
protected void |
OpenSshCertificate.decode(ByteArrayReader reader) |
BigInteger |
Ssh2RsaPrivateCrtKey.doPrivate(BigInteger input) |
BigInteger |
Ssh2RsaPublicKey.doPublic(BigInteger input) |
BigInteger |
OpenSshRsaCertificate.doPublic(BigInteger input) |
protected void |
OpenSshCertificate.encode(ByteArrayWriter writer) |
SshKeyPair |
JCEComponentManager.generateDsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEcdsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateRsaKeyPair(int bits) |
byte[] |
SshX509RsaSha1PublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will
be passed into init to recreate the key.
|
byte[] |
SshX509RsaPublicKeyRfc6187.getEncoded() |
byte[] |
SshX509RsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result
will be passed into init to recreate the key.
|
byte[] |
SshX509Rsa2048Sha256Rfc6187.getEncoded() |
byte[] |
SshX509EcdsaSha2NistPublicKeyRfc6187.getEncoded() |
byte[] |
SshX509DsaPublicKeyRfc6187.getEncoded() |
byte[] |
SshX509DsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result
will be passed into init to recreate the key.
|
byte[] |
Ssh2RsaPublicKey.getEncoded() |
byte[] |
Ssh2EcdsaSha2NistPublicKey.getEncoded() |
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[] |
OpenSshRsaCertificate.getEncoded() |
String |
Ssh2RsaPublicKey.getFingerprint() |
String |
Ssh2EcdsaSha2NistPublicKey.getFingerprint() |
String |
Ssh2DsaPublicKey.getFingerprint() |
String |
OpenSshRsaCertificate.getFingerprint() |
SshSecureRandomGenerator |
JCEComponentManager.getRND() |
void |
HmacSha512ETM.init(byte[] keydata) |
void |
HmacSha512.init(byte[] keydata) |
void |
HmacSha256ETM.init(byte[] keydata) |
void |
HmacSha256.init(byte[] keydata) |
void |
HmacSha1ETM.init(byte[] keydata) |
void |
HmacSha196.init(byte[] keydata) |
void |
HmacSha1.init(byte[] keydata) |
void |
HmacRipeMd160ETM.init(byte[] keydata) |
void |
HmacRipeMd160.init(byte[] keydata) |
void |
AbstractHmac.init(byte[] keydata) |
void |
SshX509RsaSha1PublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
SshX509RsaPublicKeyRfc6187.init(byte[] blob,
int start,
int len) |
void |
SshX509RsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
SshX509Rsa2048Sha256Rfc6187.init(byte[] blob,
int start,
int len) |
void |
SshX509EcdsaSha2NistPublicKeyRfc6187.init(byte[] blob,
int start,
int len) |
void |
SshX509DsaPublicKeyRfc6187.init(byte[] blob,
int start,
int len) |
void |
SshX509DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
Ssh2RsaPublicKey.init(byte[] blob,
int start,
int len) |
void |
Ssh2EcdsaSha2NistPublicKey.init(byte[] blob,
int start,
int len) |
void |
Ssh2DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
OpenSshRsaCertificate.init(byte[] blob,
int start,
int len) |
void |
SecureRND.nextBytes(byte[] bytes,
int off,
int len) |
boolean |
Ssh2RsaPublicKey.verifySignature(byte[] signature,
byte[] data) |
boolean |
Ssh2EcdsaSha2NistPublicKey.verifySignature(byte[] signature,
byte[] data) |
boolean |
Ssh2DsaPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
boolean |
OpenSshRsaCertificate.verifySignature(byte[] signature,
byte[] data) |
Constructor and Description |
---|
JCEComponentManager() |
Ssh2DsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y) |
Modifier and Type | Method and Description |
---|---|
void |
PublicKeyAuthenticationProvider.add(SshPublicKey key,
String comment,
Connection<SshServerContext> con) |
void |
OpenSshCACertificateStoreImpl.add(SshPublicKey key,
String comment,
Connection<SshServerContext> con) |
void |
OpenSshCACertificateStoreImpl.addCAKey(SshPublicKey caKey) |
static SshKeyPair |
SshServerContext.generateKeyFiles(File keyFilename,
String type,
int bitlength,
int publicKeyFormat)
Generate a public and private key pair, save them to keyFilename and
keyFilename.pub, return the key pair
|
protected void |
TransportProtocolServer.initializeKeyExchange(SshKeyExchange<SshServerContext> keyExchange,
boolean firstPacketFollows,
boolean useFirstPacket) |
void |
SshServerContext.loadHostKey(InputStream in,
String type,
int bitlength) |
void |
SshServerContext.loadHostKey(InputStream in,
String type,
int bitlength,
int privateKeyFormat,
int publicKeyFormat,
String passPhrase) |
void |
SshServerContext.loadHostKey(InputStream in,
String type,
int bitlength,
String passPhrase) |
void |
SshServerContext.loadOrGenerateHostKey(File key,
String type,
int bitlength)
Load a host key from file, if the file does not exist then generate the
key.
|
void |
SshServerContext.loadOrGenerateHostKey(File key,
String type,
int bitlength,
int publicKeyFormat,
String passPhrase)
Load a host key from file, if the file does not exist then generate the
key.
|
void |
SshServerContext.loadOrGenerateHostKey(File key,
String type,
int bitlength,
String passPhrase) |
void |
PublicKeyAuthenticationProvider.remove(SshPublicKey key,
Connection<SshServerContext> con) |
void |
OpenSshCACertificateStoreImpl.remove(SshPublicKey key,
Connection<SshServerContext> con) |
void |
SshServerContext.setPreferredPublicKey(String name)
Set the preferred public key algorithm.
|
Modifier and Type | Method and Description |
---|---|
void |
AuthorizedKeysPublicKeyAuthenticationProvider.add(SshPublicKey key,
String comment,
Connection<SshServerContext> con) |
void |
AuthorizedKeysPublicKeyAuthenticationProvider.remove(SshPublicKey key,
Connection<SshServerContext> con) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
SshKeyExchangeServer.processMessage(byte[] msg)
Process a key exchange message
|
Modifier and Type | Method and Description |
---|---|
protected void |
DiffieHellmanGroupExchangeSha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
protected void |
DiffieHellmanGroup1Sha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
protected void |
DiffieHellmanGroup14Sha1JCE.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data.
|
protected void |
DiffieHellmanEcdh.calculateExchangeHash() |
boolean |
DiffieHellmanGroupExchangeSha1JCE.exchangeGroup(byte[] msg) |
boolean |
DiffieHellmanGroupExchangeSha1JCE.processMessage(byte[] msg) |
boolean |
DiffieHellmanGroup1Sha1JCE.processMessage(byte[] msg) |
boolean |
DiffieHellmanGroup14Sha1JCE.processMessage(byte[] msg) |
boolean |
DiffieHellmanEcdh.processMessage(byte[] msg) |
Modifier and Type | Method and Description |
---|---|
SshServerContext |
VanillaSSHD.createContext(SshEngineContext daemonContext,
SocketChannel sc) |
Constructor and Description |
---|
VanillaSSHD() |
Copyright © 2016. All rights reserved.