Interface EntityTag.Builder

  • All Superinterfaces:
    java.lang.Appendable
    Enclosing interface:
    EntityTag

    public static interface EntityTag.Builder
    extends java.lang.Appendable
    Build an EntityTag instance
    Author:
    cdivilly
  • <section role="region">
    • Method Detail

      • append

        EntityTag.Builder append​(char c)
        Specified by:
        append in interface java.lang.Appendable
      • append

        EntityTag.Builder append​(java.lang.CharSequence text,
                                 int start,
                                 int length)
        Specified by:
        append in interface java.lang.Appendable
      • append

        EntityTag.Builder append​(java.lang.CharSequence text)
        Append text to the ETag value
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        text - The text to append
        Returns:
        self
      • digest

        EntityTag.Builder digest​(boolean digest)
        Indicates whether the value should be hashed by a secure hash. If a value is not hashed it may provide a vector for potentially sensitive data, e.g. unique identifiers, personal identifiers etc. to be leaked. The default is to hash values.
        Parameters:
        digest - If true, values will be securely hashed, if false they will not
        Returns:
        self
    </section>