getByJwaName static method

AlgorithmIdentifier<Algorithm>? getByJwaName(
  1. String alg
)

Implementation

static AlgorithmIdentifier? getByJwaName(String alg) {
  var i = _jwaAlgorithms[alg];
  if (i == null && alg != 'none') {
    if (_jwaAlgorithms.containsKey(alg)) {
      throw UnimplementedError("Algorithm '$alg' not implemented");
    }
    throw UnsupportedError("Algorithm '$alg' not supported");
  }
  return i;
}