public static AuthzCredentialGenerator create(final ClassCode classCode) {
    switch (classCode.classType) {
      case ClassCode.ID_DUMMY:
        return new DummyAuthzCredentialGenerator();
      case ClassCode.ID_XML:
        return new XmlAuthzCredentialGenerator();
      default:
        return null;
    }
  }
A factory method to create a new instance of an {@link AuthzCredentialGenerator} for the given
{@link ClassCode}. Caller is supposed to invoke {@link AuthzCredentialGenerator#init}
immediately after obtaining the instance.

@param classCode the {@code ClassCode} of the {@code AuthzCredentialGenerator} implementation

@return an instance of {@code AuthzCredentialGenerator} for the given class code
geode-dunit/src/main/java/org/apache/geode/security/generator/AuthzCredentialGenerator.java