Annotation Interface Hash


@Target({METHOD,FIELD,PARAMETER}) @Retention(RUNTIME) public @interface Hash
Hashing annotation to hash fields and input parameters
Author:
dfuentes Created by dfuentes on 15/03/2017.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Possible hashing algorithms to choose from
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Algorithm to use when hashing
    Salt to apply when hashing
  • Element Details

    • algorithm

      Algorithm to use when hashing
      Returns:
      Default:
      SHA_256
    • salt

      String salt
      Salt to apply when hashing
      Returns:
      Default:
      ""