Instead of making everyone inherit from our credential types, use an interface with two attributes, which makes the C code much shorter and simpler.