Package com.exedio.cope.pattern
Class PasswordRecovery.Config
- java.lang.Object
-
- com.exedio.cope.pattern.PasswordRecovery.Config
-
- Enclosing class:
- PasswordRecovery
public static final class PasswordRecovery.Config extends Object
-
-
Constructor Summary
Constructors Constructor Description Config(int expiryMillis)
Deprecated.UseConfig(Duration, Duration)
instead.Config(int expiryMillis, int reuseMillis)
Deprecated.UseConfig(Duration, Duration)
instead.Config(Duration expiry, Duration reuse)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Duration
getExpiry()
int
getExpiryMillis()
Deprecated.UsegetExpiry()
instead.Duration
getReuse()
int
getReuseMillis()
Deprecated.UsegetReuse()
instead.
-
-
-
Constructor Detail
-
Config
@Deprecated public Config(int expiryMillis)
Deprecated.UseConfig(Duration, Duration)
instead.- 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.UseConfig(Duration, Duration)
instead.- Parameters:
expiryMillis
- the time span, after which this token will not be valid anymore, in millisecondsreuseMillis
- 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.UsegetExpiry()
instead. BEWARE: May fail for large values!
-
getExpiry
public Duration getExpiry()
-
getReuseMillis
@Deprecated public int getReuseMillis()
Deprecated.UsegetReuse()
instead. BEWARE: May fail for large values!
-
getReuse
public Duration getReuse()
-
-