docs: private void writeObject(ObjectOutputStream out) throws IOException {
          PutField fields = out.putFields();
          fields.put(AUTH_METHOD, authMethod);
          fields.put(ACCESS_ID, accessId);
          fields.put(SECURITY_NAME, securityName);
          out.writeFields();
      }