type indicates not only the encoding of the key, but also the the algorithm used when signing. Until now only RSA keys have types that are different from name.
String get type;