Class PasswordRecovery.Config

java.lang.Object
com.exedio.cope.pattern.PasswordRecovery.Config
Enclosing class:
PasswordRecovery

public static final class PasswordRecovery.Config extends Object
  • Constructor Details

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

    • 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!
    • getReuse

      public Duration getReuse()