Interface DigestProvider.DigestFunction

Enclosing interface:
DigestProvider<T extends ProviderConfig>
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 static interface DigestProvider.DigestFunction
Function to generate a digest from bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(byte[] data, Boolean preHashed)
    Create digest.
  • Method Details

    • apply

      String apply(byte[] data, Boolean preHashed)
      Create digest.
      Parameters:
      data - data to digest
      preHashed - whether the data is already a hash (true), or the raw data (false)
      Returns:
      future with the digest string (signature, HMAC)