Package com.exedio.cope.pattern
Class PasswordLimiter
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.PasswordLimiter
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordLimiter
(HashInterface password, long period, int limit) Deprecated.PasswordLimiter
(HashInterface password, Duration period, int limit) PasswordLimiter
(Hash password, long period, int limit) Deprecated.UsePasswordLimiter(HashInterface, Duration, int)
instead. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
checkVerbosely
(Item item, String password) getDate()
int
getLimit()
long
PartOf<?>
protected void
onMount()
Here you can do additional initialization not yet done in the constructor.int
purge
(Interrupter interrupter) Deprecated.Usepurge(JobContext)
instead.void
purge
(JobContext ctx) int
purge
(Class<?> parentClass, Interrupter interrupter) Deprecated.Usepurge(com.exedio.cope.util.Interrupter)
instead.void
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, registerSource
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Constructor Details
-
PasswordLimiter
-
PasswordLimiter
Deprecated.UsePasswordLimiter(HashInterface, Duration, int)
instead. -
PasswordLimiter
Deprecated.UsePasswordLimiter(HashInterface, Duration, int)
instead.
-
-
Method Details
-
getPassword
-
getPeriod
public long getPeriod() -
getPeriodDuration
-
getLimit
public int getLimit() -
onMount
protected void onMount()Description copied from class:Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methodsPattern.getType()
andFeature.getName()
for the first time. -
getParent
-
getRefusals
-
getDate
-
getRefusalType
-
check
-
checkVerbosely
public boolean checkVerbosely(@Nonnull Item item, @Nullable String password) throws PasswordLimiter.ExceededException -
reset
-
purge
-
purge
Deprecated.Usepurge(com.exedio.cope.util.Interrupter)
instead. -
purge
Deprecated.Usepurge(JobContext)
instead.
-
PasswordLimiter(HashInterface, Duration, int)
instead.