private DrmInfoRequest createRequestToProcessMeterCertResponse(String mimeType, String data) {
   DrmInfoRequest request =
       new DrmInfoRequest(DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO, mimeType);
   request.put(Constants.DRM_ACTION, Constants.DRM_ACTION_PROCESS_METER_CERT_RESPONSE);
   request.put(Constants.DRM_DATA, data);
   return request;
 }
 private DrmInfoRequest createRequestToGenerateMeterCertChallenge(String mimeType) {
   DrmInfoRequest request =
       new DrmInfoRequest(DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO, mimeType);
   request.put(Constants.DRM_ACTION, Constants.DRM_ACTION_GENERATE_METER_CERT_CHALLENGE);
   request.put(Constants.DRM_METERING_METERING_ID, mMeteringId);
   addCustomData(request, mCustomData);
   return request;
 }
 private DrmInfoRequest createRequestToGenerateJoinDomainChallenge(
     String mime, String friendlyName) {
   DrmInfoRequest request = new DrmInfoRequest(DrmInfoRequest.TYPE_REGISTRATION_INFO, mime);
   request.put(Constants.DRM_ACTION, Constants.DRM_ACTION_GENERATE_JOIN_DOM_CHALLENGE);
   request.put(Constants.DRM_DOMAIN_SERVICE_ID, mServiceId);
   request.put(Constants.DRM_DOMAIN_ACCOUNT_ID, mAccountId);
   request.put(Constants.DRM_DOMAIN_REVISION, mRevision);
   request.put(Constants.DRM_DOMAIN_FRIENDLY_NAME, friendlyName);
   addCustomData(request, mCustomData);
   return request;
 }
 private DrmInfoRequest createRequestToProcessJoinDomainResponse(String mime, String data) {
   DrmInfoRequest request = new DrmInfoRequest(DrmInfoRequest.TYPE_REGISTRATION_INFO, mime);
   request.put(Constants.DRM_ACTION, Constants.DRM_ACTION_PROCESS_JOIN_DOM_RESPONSE);
   request.put(Constants.DRM_DATA, data);
   return request;
 }