Package com.exedio.cope.pattern
Class PasswordRecovery.Config
java.lang.Object
com.exedio.cope.pattern.PasswordRecovery.Config
- Enclosing class:
- PasswordRecovery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.UsegetExpiry()
instead.getReuse()
int
Deprecated.UsegetReuse()
instead.
-
Constructor Details
-
Config
Deprecated.UseConfig(Duration, Duration)
instead.- Parameters:
expiryMillis
- the time span, after which this token will not be valid anymore, in milliseconds
-
Config
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.
-
Config
- Parameters:
expiry
- the time span, after which this token will not be valid anymore, in millisecondsreuse
- 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.UsegetExpiry()
instead. BEWARE: May fail for large values! -
getExpiry
-
getReuseMillis
Deprecated.UsegetReuse()
instead. BEWARE: May fail for large values! -
getReuse
-
Config(Duration, Duration)
instead.