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 classstatic 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 TypeMethodDescriptionbooleanbooleancheckVerbosely(Item item, String password) getDate()intgetLimit()longPartOf<?>protected voidonMount()Here you can do additional initialization not yet done in the constructor.intpurge(Interrupter interrupter) Deprecated.Usepurge(JobContext)instead.voidpurge(JobContext ctx) intpurge(Class<?> parentClass, Interrupter interrupter) Deprecated.Usepurge(com.exedio.cope.util.Interrupter)instead.voidMethods 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, registerSourceMethods 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:PatternHere 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.