class KerberosDescriptor extends AbstractKerberosDescriptorContainer {

  public Map<String, String> principals() throws AmbariException {
    Map<String, String> result = new HashMap<>();
    for (AbstractKerberosDescriptorContainer each : nullToEmpty(getChildContainers())) {
      if ((each instanceof KerberosServiceDescriptor)) {
        collectFromComponents(each.getName(), nullToEmpty(((KerberosServiceDescriptor) each).getComponents()).values(), result);
        collectFromIdentities(each.getName(), "", nullToEmpty(each.getIdentities()), result);
      }
    }
    return result;
  }

  public  KerberosDescriptor();
    KerberosDescriptor(Map<?, ?> data);

}