Class StateHash

All Implemented Interfaces:
Serializable, Comparable<Identifier>, net.minidev.json.JSONAware

@Immutable public class StateHash extends HashClaim
State hash (s_hash).

Related specifications:

  • Financial Services – Financial API - Part 2: Read and Write API Security Profile, section 5.1.
See Also:
  • Constructor Details

    • StateHash

      public StateHash(String value)
      Creates a new state hash with the specified value.
      Parameters:
      value - The state hash value. Must not be null.
  • Method Details

    • compute

      @Deprecated public static StateHash compute(State state, com.nimbusds.jose.JWSAlgorithm alg)
      Deprecated.
      Computes the hash for the specified state and reference JSON Web Signature (JWS) algorithm.
      Parameters:
      state - The state. Must not be null.
      alg - The reference JWS algorithm. Must not be null.
      Returns:
      The state hash, or null if the JWS algorithm is not supported.
    • compute

      public static StateHash compute(State state, com.nimbusds.jose.JWSAlgorithm alg, com.nimbusds.jose.jwk.Curve crv)
      Computes the hash for the specified state and reference JSON Web Signature (JWS) algorithm.
      Parameters:
      state - The state. Must not be null.
      alg - The reference JWS algorithm. Must not be null.
      crv - The JWK curve used with the JWS algorithm, null if not applicable.
      Returns:
      The state hash, or null if the JWS algorithm is not supported.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Identifier