getAlgorithm method

String getAlgorithm(
  1. int index
)

Gets the algorithm of the key entry at the specified index.

Throws an AskarKeyEntryListException if the algorithm retrieval fails.

Implementation

String getAlgorithm(int index) {
  try {
    return askarKeyEntryListGetAlgorithm(this, index).getValueOrException();
  } catch (e) {
    throw AskarKeyEntryListException('Failed to get algorithm: $e');
  }
}