Class StateHash

    • Constructor Detail

      • 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 Detail

      • compute

        public static StateHash compute​(State state,
                                        com.nimbusds.jose.JWSAlgorithm alg)
        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.