K - the type for the key informationpublic interface SigningBackend<K>
The singing backend is responsible for the actual signing. The signing can be done by this class itself or might be delegated to some external process (like when using an SSH agent). Depending on this the passed key information might look different. In the first case the key information must contain the private key in the second case the public key (or even just some kind of identifier) might be sufficient.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SigningBackend.SigningResult
Data container for a signing result.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
extractPublicKey(K someKeyInformation)
Method for extracting the public key from the key information.
|
SigningBackend.SigningResult |
signData(K someKeyInformation,
byte[] someDataToSign)
Method for signing data using the provided key information.
|
PublicKey extractPublicKey(K someKeyInformation)
This is required because the public key gets encoded in the SSH signature.
someKeyInformation - the key informationSigningBackend.SigningResult signData(K someKeyInformation, byte[] someDataToSign) throws SshSignatureException
someKeyInformation - the key informationsomeDataToSign - the blob to be signedSshSignatureException - in case the signing failedCopyright © 2023. All rights reserved.