Class HmacDigest.Builder

    • Method Detail

      • provider

        public HmacDigest.Builder provider​(String provider)
        Set provider of the algorithm.
        Parameters:
        provider - provider to set
        Returns:
        updated builder instance
      • hmacSecret

        public HmacDigest.Builder hmacSecret​(byte[] hmacSecret)
        Secret key to be used in HMAC algorithm.
        Parameters:
        hmacSecret - secret key
        Returns:
        updated builder instance
      • build

        public HmacDigest build()
        Description copied from interface: Builder
        Build the instance from this builder.
        Specified by:
        build in interface Builder<HmacDigest>
        Returns:
        instance of the built type