Class TokenGenerationParameter<T>

  • Type Parameters:
    T - the concrete type of the parameter value.

    public class TokenGenerationParameter<T>
    extends Object
    Parameters for customizing the generation of a token.
    • Method Detail

      • params

        public static <T> TokenGenerationParameter<T> params​(String key,
                                                             T value)
        Convenient method to create a generation parameter.
        Type Parameters:
        T - the type of the concrete parameter, id est the type of the value.
        Parameters:
        key - the parameter key.
        value - the parameter value.
        Returns:
        a generation parameter.
      • value

        public T value()
        Gets this generation parameter value.
        Returns:
        the value of this parameter.