getByJwaName static method
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;
}