usableForAlgorithm method
Returns true if this key can be used with the JSON Web Algorithm
identified by algorithm
Implementation
bool usableForAlgorithm(String algorithm) {
if (this.algorithm != null && this.algorithm != algorithm) return false;
var alg = JsonWebAlgorithm.getByName(algorithm);
return alg.type == keyType;
}