Package com.sshtools.common.publickey
Interface SignatureGenerator
- All Known Implementing Classes:
SshCertificate,SshKeyPair
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 sshagent).
-
Method Summary
Modifier and TypeMethodDescriptionList the public keys supported by this signature generator.byte[]sign(SshPublicKey key, String signingAlgorithm, byte[] data) Sign the data using the private key of the public key provided.
-
Method Details
-
sign
byte[] sign(SshPublicKey key, String signingAlgorithm, byte[] data) throws SshException, IOException Sign the data using the private key of the public key provided.- Parameters:
key-data-- Returns:
- byte[]
- Throws:
IOExceptionSshException
-
getPublicKeys
List the public keys supported by this signature generator.- Returns:
- Throws:
IOException
-