message: Change JavaScript EntityAuthenticationScheme to a Class in order to support proper subclassing and instanceof checks.
  Add toString() method for automatic pretty printing.
diff: @@ -31,6 +31,7 @@ var EntityAuthenticationScheme$getScheme;
  /** Map of names onto schemes. */
  var schemes = {};
  + EntityAuthenticationScheme = util.Class.create({
  /**
  * Define an entity authentication scheme with the specified name and
  * cryptographic properties.
  @@ -39,7 +40,7 @@ var EntityAuthenticationScheme$getScheme;
  * @param {boolean} encrypts true if the scheme encrypts message data.
  * @param {boolean} protects true if the scheme protects message integrity.
  */
  - EntityAuthenticationScheme = function EntityAuthenticationScheme(name, encrypts, protects) {
  + init: function init(name, encrypts, protects) {
  // The properties.
  var props = {
  name: { value: name, writable: false, configurable: false },
  @@ -50,7 +51,13 @@ var EntityAuthenticationScheme$getScheme;
  // Add this scheme to the map.
  schemes[name] = this;
  - };
  + },
  +
  + /** @inheritDoc */
  + toString: function toString() {
  + return this.name;
  + },
  + });
  util.Class.mixin(EntityAuthenticationScheme,
  /** @lends {EntityAuthenticationScheme} */
  