@Override
public IResponseMessage processCertReq(Admin admin, UserDataVO userdata, IRequestMessage req, Class responseClass) throws PersistenceException, AuthorizationDeniedException, UserDoesntFullfillEndEntityProfile, EjbcaException {
// Check tokentype
if(userdata.getTokenType() != SecConst.TOKEN_SOFT_BROWSERGEN){
throw new WrongTokenTypeException ("Error: Wrong Token Type of user, must be 'USERGENERATED' for PKCS10/SPKAC/CRMF/CVC requests");
}
// This is the secret sauce, do the end entity handling automagically here before we get the cert
addOrEditUser(admin, userdata, false, true);
IResponseMessage retval = null;
try {