getKeyAlgorithm abstract method

String? getKeyAlgorithm(
  1. Mapping key, [
  2. String? defaultValue
])

Extracts the algorithm name from a key's metadata map.

Retrieves the algorithm identifier (e.g., "AES", "RSA") from a key's raw map representation, with a fallback default value if not found.

key is the raw key map containing algorithm value. defaultValue is the fallback value if algorithm is not found.

Returns the extracted algorithm name (or defaultValue if not present).

Implementation

String? getKeyAlgorithm(Mapping key, [String? defaultValue]);