com.maverick.ssh2
Interface SignatureGenerator


public interface SignatureGenerator

Provides a callback when a private key signature is required. This is suitable for use when you do not have direct access to the private key, but know its public key and have access to some mechanism that enables you to request a signature from the corresponding private key (such as an ssh agent).

Author:
$Author: james $

Method Summary
 byte[] sign(SshPublicKey key, byte[] data)
          Sign the data using the private key of the public key provided.
 

Method Detail

sign

public byte[] sign(SshPublicKey key,
                   byte[] data)
            throws SshException
Sign the data using the private key of the public key provided.

Parameters:
key -
data -
Returns:
Throws:
java.io.IOException
SshException


Copyright © 2003 3SP LTD. All Rights Reserved.