code: public Enrollment enroll(String enrollmentSecret) throws EnrollmentException {
          EnrollmentRequest req = new EnrollmentRequest();
          req.setEnrollmentID(getName());
          req.setEnrollmentSecret(enrollmentSecret);
          logger.debug(String.format("Enrolling [req=%s]", req));
  
          this.enrollment = memberServices.enroll(req);
          this.saveState();
          return this.enrollment;
      }
docs: Enroll the member and return the enrollment results.
  @param enrollmentSecret The password or enrollment secret as returned by register.
  @return enrollment details
  @throws EnrollmentException