ExpirationBase class abstract
Base class for expiration logic in cryptographic objects. Implements IExpiration and manages expiration date, usage limits, and algorithm.
- Implemented types
- Implementers
- Annotations
-
- @includeInBarrelFile
Constructors
- ExpirationBase(InputExpirationBase input)
- Constructs an ExpirationBase with the given input parameters.
Properties
- algorithm → CryptoAlgorithm
-
The cryptographic algorithm associated with this object.
no setteroverride
- expirationDate → DateTime?
-
The expiration date, or null if not set.
no setteroverride
- expirationTimes → int?
-
Maximum number of allowed usages before expiration.
no setteroverride
- expirationTimesRemaining → int?
-
Remaining number of allowed usages.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
incrementUse(
) → void -
Increments the usage counter for expiration times.
override
-
isExpired(
) → bool -
Returns true if the object is expired.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited