Class Hmac

java.lang.Object
org.springframework.vault.support.Hmac

public class Hmac extends Object
Value object representing Hmac digest.
Since:
2.0
Author:
Luander Ribeiro, Mark Paluch
  • Method Details

    • of

      public static Hmac of(String hmac)
      Factory method to create a Hmac from the given hmac.
      Parameters:
      hmac - the Hmac digest, must not be null or empty.
      Returns:
      the Hmac encapsulating hmac.
    • getHmac

      public String getHmac()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object