public class SshSignature extends Object
Contains
This class also provides methodes for getting the textual representation in PEM format.
| Constructor and Description |
|---|
SshSignature(byte[] someSignatureData,
SignatureAlgorithm aSignatureAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
SignatureAlgorithm |
getSignatureAlgorithm() |
byte[] |
getSignatureData() |
String |
toPem()
Returns the textural representation in PEM format.
|
void |
writeAsPem(Path aPath)
Writes the signature to a file (in PEM format).
|
void |
writeAsPem(Writer aWriter)
Writes the textural representation in PEM format.
|
public SshSignature(byte[] someSignatureData,
SignatureAlgorithm aSignatureAlgorithm)
public SignatureAlgorithm getSignatureAlgorithm()
public byte[] getSignatureData()
public String toPem()
public void writeAsPem(Writer aWriter)
aWriter - the writerpublic void writeAsPem(Path aPath) throws IOException
aPath - the path to the fileIOException - in case wirting the signature file failedCopyright © 2023. All rights reserved.