getKey method
Looks up one of enrollmentId's materials by (keyId, role) —
type is a CryptographicMaterialRole token.
Implementation
CryptographicMaterial? getKey(
String enrollmentId, String keyId, CryptographicMaterialRole type) =>
_enrollments[enrollmentId]?.materialsByKeyId[keyId]?[type];