getKey method

CryptographicMaterial? getKey(
  1. String enrollmentId,
  2. String keyId,
  3. CryptographicMaterialRole type
)

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];