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 ; }
Enroll the member and return the enrollment results .