* Add authentication data.
*/
switch (authenticationMethod.getAuthType())
{
case AuthenticationMethod.AUTH_TYPE_ANONYMOUS:
initRequest.idAuthentication = new IdAuthentication_type();
initRequest.idAuthentication.which = IdAuthentication_type.anonymous_CID;
break;
case AuthenticationMethod.AUTH_TYPE_ID_OPEN:
initRequest.idAuthentication = new IdAuthentication_type();
initRequest.idAuthentication.which = IdAuthentication_type.open_CID;
initRequest.idAuthentication.o = authenticationMethod.getUserId();
break;
case AuthenticationMethod.AUTH_TYPE_ID_PASS:
initRequest.idAuthentication = new IdAuthentication_type();
initRequest.idAuthentication.which = IdAuthentication_type.idpass_CID;
idPass_inline0_type idpass = new idPass_inline0_type();
idpass.groupId = authenticationMethod.getGroupId();
idpass.userId = authenticationMethod.getUserId();