Interface PrivateKey


public interface PrivateKey
Can be used to create signatures of data.
Since:
2.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the key's id.
    default byte[]
    sign(byte[] data)
    Creates a signature for the given data.
    byte[]
    sign(InputStream stream)
    Creates a signature for the given data.
  • Method Details

    • getId

      String getId()
      Returns the key's id.
    • sign

      byte[] sign(InputStream stream)
      Creates a signature for the given data.
      Parameters:
      stream - data stream to sign
      Returns:
      signature
    • sign

      default byte[] sign(byte[] data)
      Creates a signature for the given data.
      Parameters:
      data - data to sign
      Returns:
      signature