Class Sign

java.lang.Object
org.bgerp.app.dist.lic.Sign

public class Sign extends Object
Signer supported SSH keys: 'RSA', 'ED25519'
  • Constructor Details

    • Sign

      public Sign(String id, String privateKey, String password)
      Constructor for sign generation.
      Parameters:
      id - unique key ID.
      privateKey - encoded private key.
      password - for decrypting the private key, or null.
  • Method Details

    • signatureVerify

      public boolean signatureVerify(byte[] data, String signature)
      Verification of signature.
      Parameters:
      data - raw data.
      signature - Base64 encoded signature.
      Returns:
    • signatureGenerate

      public String signatureGenerate(byte[] data) throws org.bouncycastle.crypto.CryptoException
      Makes a signature.
      Parameters:
      data - raw.
      Returns:
      Base64 encoded string.
      Throws:
      org.bouncycastle.crypto.CryptoException