IHandler<T extends IExpiration> class abstract

Generic handler interface for cryptographic objects. Manages a chain of crypts and expiration logic.

Implemented types
Implementers
Annotations
  • @includeInBarrelFile

Constructors

IHandler()

Properties

algorithm → CryptoAlgorithm
The cryptographic algorithm associated with this object.
no setterinherited
crypts → List<T>
List of active crypt objects.
no setter
currentCrypt → T
The current active crypt object.
no setter
expirationDate → DateTime?
The expiration date, or null if not set.
no setterinherited
expirationTimes → int?
Maximum number of allowed usages before expiration.
no setterinherited
expirationTimesRemaining → int?
Remaining number of allowed usages.
no setterinherited
expiredCrypts → List<T>
List of expired crypt objects.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteCrypt(String key) → void
Deletes a crypt object by key.
incrementUse() → void
Increments the usage counter for expiration times.
inherited
isExpired() → bool
Returns true if the object is expired.
inherited
nextCrypt() → void
Advances to the next crypt object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNextCrypt(T obj) → void
Sets the next crypt object in the chain.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited