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

        @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.