CryptographicMaterial class final

One cryptographic key material — e.g. the public half of an encryption keypair. This is the object app code interacts with everywhere in AtKeys's API (addKey, getKey, keysForKeyId, keysForEnrollment, retireKey); it is fully self-describing (keyId/enrollmentId included) so it never needs an owning wrapper to be meaningful on its own.

Constructors

CryptographicMaterial({required String keyId, String? enrollmentId, required CryptographicMaterialRole role, required CryptographicMaterialAlgorithm algorithm, required AtBytes bytes, List<String> operations = const [], required DateTime createdAt, CryptographicMaterialStatus status = CryptographicMaterialStatus.active})
const
CryptographicMaterial.fromJson(Map<String, dynamic> json, {required String keyId, String? enrollmentId})
factory

Properties

algorithm CryptographicMaterialAlgorithm
The material's algorithm family — see CryptographicMaterialAlgorithm for the known tokens. Unknown values are preserved, never rejected.
final
bytes → AtBytes
final
createdAt DateTime
final
enrollmentId String?
final
hashCode int
The hash code for this object.
no setteroverride
keyId String
final
operations List<String>
final
role CryptographicMaterialRole
The material's cryptographic role — see CryptographicMaterialRole for the known tokens. Unknown values are preserved, never rejected.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status CryptographicMaterialStatus
Whether this material is in use — see CryptographicMaterialStatus for the known tokens. Unknown values are preserved, never rejected.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
withStatus(CryptographicMaterialStatus status) CryptographicMaterial
A copy of this material with only status replaced.

Operators

operator ==(Object other) bool
The equality operator.
override