Package org.bgerp.app.dist.lic
Class Sign
java.lang.Object
org.bgerp.app.dist.lic.Sign
Signer supported SSH keys: 'RSA', 'ED25519'
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsignatureGenerate
(byte[] data) Makes a signature.boolean
signatureVerify
(byte[] data, String signature) Verification of signature.
-
Constructor Details
-
Sign
Constructor for sign generation.- Parameters:
id
- unique key ID.privateKey
- encoded private key.password
- for decrypting the private key, or null.
-
-
Method Details
-
signatureVerify
Verification of signature.- Parameters:
data
- raw data.signature
- Base64 encoded signature.- Returns:
-
signatureGenerate
Makes a signature.- Parameters:
data
- raw.- Returns:
- Base64 encoded string.
- Throws:
org.bouncycastle.crypto.CryptoException
-