Android
2012.05.24 11:14

How to create OMA DRM v1.0 content

조회 수 13326 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print


출처 : http://www.developer.nokia.com/Community/Wiki/How_to_create_OMA_DRM_v1.0_content


The easiest way to create OMA DRM v1.0 content is by using Nokia Mobile Internet Toolkit, a standalone tool from Nokia Developer. This article will show how to protect a JPEG image into a protected OMA DRM v1.0 content using NMIT version 4.1.

Tools

The following tools are needed to run the demonstration:

  • S60 or Series 40 emulator that supports OMA DRM v1.0.
  • Phone supporting OMA DRM v1.0. Check the device matrix from Nokia Developer to find out which devices support OMA DRM v1.0. Note that some devices do not support all protection methods of OMA DRM v1.0. Some of them support OMA DRM v1.0 Forward-lock only as an example.

OMA DRM v1.0 Forward-lock

OMA DRM v1.0 Forward-lock is the simplest protection method of OMA DRM v1.0. The content is locked to a certain device. It cannot be forwarded to other devices.


Creating OMA DRM v1.0 Forward-lock content

Follow the instructions below to create OMA DRM v1.0 Forward Lock:

  • Open NMIT.
  • Select File | New | Deployment | DRM Message.
  • Select Forward Lock (.dm) as message type.
  • Click Load Content button to load the JPEG image that is going to be protected.
  • Make sure that the Content-type is correct. For example, it has to be image/jpeg for JPEG image.
  • Select File | Save to save the content. For example, save it as nokia.dm.


Nmit forwardlock.png


Note that the generated content, i.e. nokia.dm, is NOT protected yet. It just wraps the original content with OMA DRM v1.0 container. The content is going to be protected when delivered to the emulator/device.


Pushing OMA DRM v1.0 Forward-lock content to emulator

  • From NMIT, activate SDK panel. It can be done by selecting Tools | SDK Control Panel menu or pressing Ctrl+E.
  • Select one of the SDK listed in the right panel. Click the green button on the right side of the SDK name to launch the emulator.
  • After the SDK has been started, back to the content's panel (nokia.dm).
  • Click Show Message button at the bottom right of the window to push the content to the emulator.

Nmit forwardlock emulator.png


Setting up Web server to support OMA DRM v1.0

Before a Web server can be used as an OMA DRM v1.0 content provider, there are some MIME types that have to be set. It is needed so that the client knows the MIME type of the content it is downloading.

For Apache httpd, add the following lines to the .htaccess file:

AddType application/vnd.oma.drm.message .dm
AddType application/vnd.oma.drm.content .dcf
AddType application/vnd.oma.drm.rights+wbxml .drc
AddType application/vnd.oma.drm.rights+xml .dr


where is the Microsoft IIS configuration ? How do I add a new file extension(IIS 6) Add a MIME Type (IIS 7)

Downloading OMA DRM v1.0 Forward-lock content to device

  • Make sure that the content has been uploaded to the Web server and the MIME types have been set correctly.
  • Open Web browser on the client. Type the URL where the protected content is stored, for example http://myserver/nokia.dm.
  • The Web browser will download the file and encrypt it on-the-fly. The content is also locked to the device; so that it cannot be forward to other devices.


Nokia Delivery Server

As mentioned above, the content that is stored on the Web server is actually not protected. It will be protected on the device on-the-fly. It is definitely not a secure way of delivering real contents. As an example, a hacker may download the content via PC and then strip off the OMA DRM v1.0 container. He will then get the original unprotected content.

Nokia has developed a server, called Nokia Delivery Server (DLS), to "protect" the content. Furthermore, DLS can be integrated into billing systems.


Creating OMA DRM v1.0 Combined Delivery

OMA DRM v1.0 Combined Delivery means the content is delivered to the device together with the corresponding rights object. The media object can be used depending on the usage rights that are specified in the rights object.


Creating OMA DRM v1.0 Combined Delivery content

  • Open NMIT.
  • Select File | New | Deployment | DRM Message.
  • Select Combined Delivery Lock (.dm) as message type.
  • Click Load Content button to load the JPEG image that is going to be protected.
  • Enter the identifier of this content in the Content-ID field, for example myimage@nokia.com.
  • Make sure that the Content-type is correct. For example, it has to be image/jpeg for JPEG image.
  • Select File | Save to save the content. For example, save it as nokia_combined.dm.
  • The next is to specify the rights. On the Specify Rights panel, click Display. Check Enable display rights to allow the content to be displayed on the device.
  • Enable Count and enter 3 times. This means the content can be displayed maximum 3 times only.
  • Click Save Binary Rights button to save the rights. For example, save is as nokia_combined.drc.


Nmit combineddelivery.png


Pushing OMA DRM v1.0 Combined Delivery content to emulator

Pushing OMA DRM v1.0 Combined Delivery content can be done in the same way as OMA DRM v1.0 Forward Lock. Launch the emulator from SDK Panel and then click Show Message button from NMIT.

Additionally, the rights can be viewed from Activation Keys application. Normally this application is located in the Tools folder. However, different devices may have different folder. On the S60 3rd emulator, it is located under Configurations folder. The picture below shows how information about rights viewed on the Activation Keys application.

Nmit combineddelivery emulator.png

Internal links

External links


Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
191 Android Android RAM 사용량 측정 2014.02.04 11246 0
190 LINUX Midnight Commander 간단 조작법 2014.04.07 11231 0
189 Android How to use addr2line in Android (arm-linux-androideabi-addr2line.exe) 2014.12.31 11205 0
188 C# C# JSON 파싱(parsing): Newtonsoft 및 System.Text.Json 2021.05.15 11131 0
187 Python filter()와 reduce() 함수 2014.04.30 11111 0
186 Pi 아두이노 (Arduino)로 서보모터 (SG90) 제어 2017.07.11 11092 0
185 일반 정규식 요약 프린트 file 2014.04.21 10802 0
184 Android EME(Encrypted Media Extensions) 설명 자료 2015.01.19 10756 0
183 Android ExoPlayer: Adaptive video streaming on Android 2015.04.17 10736 0
182 Pi 칩 저항 사이즈표, 사이즈변환, 와트, 오차표 2019.01.11 10714 0
181 Python 커맨드 라인에서 컬러로 출력하기 termcolor 2014.06.27 10710 0
180 Python wxPython Tutorial 링크 2014.04.24 10705 0
179 LINUX OpenGrok 설치 빨리하기 2016.04.27 10684 0
178 Pi 키르히호프의 법칙 2016.12.05 10674 0
177 Pi 파이썬 코드를 이용한 파이카메라 제어 2018.04.24 10588 0
목록
Board Pagination ‹ Prev 1 ... 17 18 19 20 21 22 23 24 25 26 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5