SecretKey class final

Metadata and usage state for an Inttegro secret key.

The secret token itself is not part of this model. Key material returned at generation time is represented separately by GeneratedSecretKey.

Constructors

SecretKey({required String id, String? label, required TokenType tokenType, required DateTime issuedAt, DateTime? updatedAt, DateTime? expiresAt, required Status status, required bool active, DateTime? revokedAt, DateTime? lastUsedAt, int? usageCount})
const
SecretKey.fromJson(Map<String, Object?> json)
factory

Properties

active → bool
final
expiresAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
issuedAt → DateTime
final
label → String?
final
lastUsedAt → DateTime?
final
revokedAt → DateTime?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Status
final
tokenType → TokenType
final
updatedAt → DateTime?
final
usageCount → int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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