protected static void setPrincipalPasswordMap(Map<String, Object> requestSharedDataContext,
                                                Map<String, String> principalPasswordMap) {
    if (requestSharedDataContext != null) {
      requestSharedDataContext.put(PRINCIPAL_PASSWORD_MAP, principalPasswordMap);
    }
  }
Sets the shared principal-to-password Map used to store principals and generated password for
use within the current request context.

@param requestSharedDataContext a Map to be used as shared data among all ServerActions related
                                to a given request
@param principalPasswordMap     A Map of principals and password to store
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/KerberosServerAction.java