getKeyAlgorithm abstract method
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.
@param key - Raw key map containing algorithm metadata
@param defaultValue - Fallback value if algorithm is not found
@return Extracted algorithm name (or defaultValue if not present)
Implementation
String? getKeyAlgorithm(Mapping key, [String? defaultValue]);