Interface Signer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Signer
A signing implementation used to generate digital signatures. Standard implementations can be obtained using factory methods on the Signers class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    sign(byte[] digest)
    Signs the supplied message digest.
  • Method Details

    • sign

      byte[] sign(byte[] digest) throws GeneralSecurityException
      Signs the supplied message digest. The digest is typically a hash of the message.
      Parameters:
      digest - A message digest.
      Returns:
      A digital signature.
      Throws:
      GeneralSecurityException - if a signing error occurs.