Class PasswordRecovery.Config

    • Constructor Detail

      • Config

        @Deprecated
        public Config​(int expiryMillis)
        Deprecated.
        Parameters:
        expiryMillis - the time span, after which this token will not be valid anymore, in milliseconds
      • Config

        @Deprecated
        public Config​(int expiryMillis,
                      int reuseMillis)
        Deprecated.
        Parameters:
        expiryMillis - the time span, after which this token will not be valid anymore, in milliseconds
        reuseMillis - limits the number of tokens created within that time span. This is against Denial-Of-service attacks filling up the database.
      • Config

        public Config​(Duration expiry,
                      Duration reuse)
        Parameters:
        expiry - the time span, after which this token will not be valid anymore, in milliseconds
        reuse - limits the number of tokens created within that time span. This is against Denial-Of-service attacks filling up the database.
    • Method Detail

      • getExpiryMillis

        @Deprecated
        public int getExpiryMillis()
        Deprecated.
        Use getExpiry() instead. BEWARE: May fail for large values!
      • getExpiry

        public Duration getExpiry()
      • getReuseMillis

        @Deprecated
        public int getReuseMillis()
        Deprecated.
        Use getReuse() instead. BEWARE: May fail for large values!