public void writeCredentials(DataOutputStream dos, DataInputStream dis, Properties p_credentials,
      boolean isNotification, DistributedMember member)
      throws IOException, GemFireSecurityException {
    HeapDataOutputStream hdos = new HeapDataOutputStream(32, KnownVersion.CURRENT);
    try {
      writeCredentials(dos, dis, p_credentials, isNotification, member, hdos);
    } finally {
      hdos.close();
    }
  }
This method writes what readCredential() method expects to read. (Note the use of singular
credential). It is similar to writeCredentials(), except that it doesn't write
credential-properties.

This is only used by the {@link ClientSideHandshakeImpl}.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Handshake.java