TC
- V
- public interface RestrictionStrategy<TC extends TrackCycle,V extends Number>
LimitApproachingException
, LimitExceededException
and SecurityException
for the updating TrackCycle
Modifier and Type | Interface and Description |
---|---|
static class |
RestrictionStrategy.RestrictionLevel |
Modifier and Type | Method and Description |
---|---|
boolean |
ignoreConnectionExceptions() |
boolean |
isDataSecure(TrackCycle trackCycle,
String encrytedValue)
Check that encrypted for of the value matches the hash value and throw
SecurityException accordingly |
boolean |
willBeOverThreshold(TrackCycle trackCycle,
Feature feature)
|
boolean isDataSecure(TrackCycle trackCycle, String encrytedValue) throws SecurityException
SecurityException
accordinglytrackCycle
- encrytedValue
- TrackCycle
can be updatedSecurityException
boolean willBeOverThreshold(TrackCycle trackCycle, Feature feature) throws LimitApproachingException, LimitExceededException
TrackCycle
is over Restriction.getLimit()
then throw LimitExceededException
.
If it is near the limit throw LimitApproachingException
.trackCycle
- - TrackCycle
with the value updated to what it will stored asfeature
- - Feature
with the Restriction
for the TrackCycle
TrackCycle
is Override
limit.LimitApproachingException
LimitExceededException
boolean ignoreConnectionExceptions()
Copyright © 2018. All rights reserved.