Issuing licences for windows digital rights management

I am Trying to issue licences for windows digital rights
management
with coldfusion. This is what i have so far.. any help would
be
appreciated.
I am able to get the licence in the LicenseResponse variable,
but i
dont know how to send it out. I read some stuff about the
coldfusion
Response interface but i just can't seem to get it to work.
Thanks in advance for any help.
<cfset contentowner_publickey = "xxx">
<cfset seed = "xxx">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMChallenge"
name="ChallengeObj"
context="local">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMHeader"
name="HeaderObj"
context="local">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMKeys"
name="KeysObj"
context="local">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMRights"
name="RightsObj"
context="local">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMLicGen"
name="LicGenObj"
context="local">
<cfobject type="com"
action="create"
class="Wmrmobjs.WMRMResponse"
name="ResponseObj"
context="local">
<cfset strLicenseRequested = #FORM.challenge#>
<cfset ChallengeObj.Challenge = #strLicenseRequested#>
<cfset clientinfo = ChallengeObj.ClientInfo>
<cfset varHeader = ChallengeObj.Header>
<cfset HeaderObj.Header = #varHeader#>
<cfset lResult =
HeaderObj.Verify(#contentowner_publickey#)>
<cfif #lResult# EQ 0>
<cfabort>
</cfif>
<!---<cfset indiversion =
HeaderObj.IndividualizedVersion()>
<cfset LicGenObj.IndividualizedVersion =
#indiversion#>--->
<cfset kid = HeaderObj.KeyID>
<cfset indiVersion = "2.2">
<cfset KeysObj.KeyID = #kid#>
<cfset KeysObj.Seed = #seed#>
<cfset varKey = KeysObj.GenerateKey()>
<cfset RightsObj.MinimumSecurityLevel = 500>
<!---<cfset RightsObj.BeginDate = Now()>
<cfset RightsObj.ExpirationDate = Now()>--->
<cfset RightsObj.AllowPlayOnPC = true>
<cfset RightsObj.AllowTransferToSDMI = true>
<cfset RightsObj.PMRights = 17>
<cfset RightsObj.PMAppSecurity = 999>
<cfset RightsObj.AllowBackupRestore = false>
<cfset RightsObj.AllowCopy = false>
<cfset RightsObj.DeleteOnClockRollback = false>
<!---<cfset RightsObj.DisableOnClockRollback =
true>--->
<cfset sRights = RightsObj.GetAllRights()>
<cfset LicGenObj.KeyID = #varKey#>
<cfset call = LicGenObj.SetKey("", #varKey#)>
<cfset call = LicGenObj.Attribute("LICENSESERVER",
http://www.myDomain.com")>
<cfset LicGenObj.Rights = #sRights#>
<cfset LicGenObj.Priority = 10>
<cfset LicGenObj.ClientInfo = #clientinfo#>
<cfset LicGenObj.IndividualizedVersion = #indiVersion#>
<cfset LicGenObj.BindToPubKey =
#contentowner_publickey#>
<cfset varLicense = LicGenObj.GetLicenseToDeliver()>
<cfset call = ResponseObj.AddLicense("2.0.0.0",
#varLicense#)>
<cfset LicenseResponse =
ResponseObj.GetLicenseResponse()>
THIS IS NOT CORRECT BUT I THINK IT SHOUDL BE SOMETHING LIKE
THIS BELOW
<cfscript>
response.write(#LicenseResponse#);
</cfscript>
I am able to get the licence in the LicenseResponse variable,
but i
dont know how to send it out. I read some stuff about the
coldfusion
Response interface but i just can't seem to get it to work.
Thanks in advance for any help.
Reply

Um, I don't know that there's any. I mean, there could be, but as far as I know, the rights management has to do with the file and the reader, not the download server. If you want to prevent downloads by unregistered users, there's plenty of info out there on securing your web site. But once the file is downloaded, it can be given to anyone, and your web server has nothing to do with that. That's where the DRM stuff comes into play.

Similar Messages

  • Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted

    Hi:
       I have a Panasonic video camera that records in 1920x1080 60P format and writes an .m2ts type file.  I've written a filter that scales this to half size and allows me to draw on the video etc.  I would like to save that video. 
    When I attempt to develop my program using Visual Studio 2010 I get the message  "Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted".  Also the program blows up with a memory access error.  
    Since this is my camera how is DRM  involved??   Is there a way to make such private videos not be involved in DRM?  Finally,  and how is one supposed to develop and debug this type of application if the debugger is not allowed
    to be used.
         Interestingly, if I run my application in non-debug mode it executes correctly.  However as I would like to make additions to the program etc.  not being able to use the debugger is extremely difficult.  Can someone
    shed light on this??
       Mags

    Hi:
       I have a Panasonic video camera that records in 1920x1080 60P format and writes an .m2ts type file.  I've written a filter that scales this to half size and allows me to draw on the video etc.  I would like to save that video. 
    When I attempt to develop my program using Visual Studio 2010 I get the message  "Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted".  Also the program blows up with a memory access error.  
    Since this is my camera how is DRM  involved??   Is there a way to make such private videos not be involved in DRM?  Finally,  and how is one supposed to develop and debug this type of application if the debugger is not allowed
    to be used.
         Interestingly, if I run my application in non-debug mode it executes correctly.  However as I would like to make additions to the program etc.  not being able to use the debugger is extremely difficult.  Can someone
    shed light on this??
       Mags

  • I changed my Adobe user ID when we changed from Windows PC to Mac and now I am unable to read previously downloaded ebooks on my Sony Reader device due to Digital Rights Management.  Can I resolve this?

    I changed my Adobe user ID when we changed from Windows PC to Mac and now I am unable to read previously downloaded ebooks on my Sony Reader device due to Digital Rights Management.  Any ideas how I can get access to these now?

    Hi Blotontheland,
    Thanks for the prompt reply. The interesting thing is that my Macbook Pro was upgraded today to Yosemite and I still have the spinning wheel on the start up screen before the login page comes up.

  • I cannot open a book borrowed from the library on my kobo. It says, "this document is protected by Adobe Digital Rights Management licence which has expired. Please renew." How do I do this?

    How do you renew Adobe Digital Rights Management licence?

    You need "sysinternal's process explorer", it is free and can replace the Microsoft process explorer, that you get by "CTRL+ALT+DELETE". Either program will allow you to kill the instances of FF that didn't die as they should have, when you closed them. Sysinternal is easier to use, it is a graphic display with many options. Do not push "CTRL+ALT+DELETE" twice unless you want to reboot, that is its default behaviour under Microsoft.

  • Pls help on error on ereader "this document is protected by DRM ( adobe digital rights management ) and is not currently authorized for use with your adobe id

    how do i solve this in order for the e reader to open the file?“this document is protected by DRM ( adobe digital rights management ) and is not currently authorized for use with your adobe id
    thnaks

    This is something you will need to talk to the publisher of the document. They might have to do something to allow you to open the file. (If you changed Adobe ID since buying the file, for instance, they might have to allow for that).

  • Digital Rights Management for EBooks

    Hi All,
    I need to know the API which supports "Digital Rights Management". I want to develop an application for secure download of E-Books.
    Please let me know the API used to implement the secure download of E-Books by encrypting the ebook and generating a "key" to safeguard the ebook.
    Thanks in advance.

    Um, I don't know that there's any. I mean, there could be, but as far as I know, the rights management has to do with the file and the reader, not the download server. If you want to prevent downloads by unregistered users, there's plenty of info out there on securing your web site. But once the file is downloaded, it can be given to anyone, and your web server has nothing to do with that. That's where the DRM stuff comes into play.

  • Why unable to open the item? Or "Protected by Digital Rights Management".

    I read ebooks with Adobe Reader. But lately some books (file type epub) are impossible to open. When trying on my PC (Windows 8) I get the answer ”Unable to open the item. Please contact Sony customer support. Error: document.”. And when trying on my ebook reader Sony PRS-T2 i get the answer ”Protected by Digital Rights Management”.
    Moreover, it is the same thing with my android devices (tablet Sony Xperia Z2 and smartphone Sony Xperia ZR), where I use UB Reader to read. My tablet says ”Filformatet stöds inte.” (= The file format is not supported.) And my smartphone says ”Du har inte rätt att öppna den här boken. Kontrollera ditt Adobe ID.” (= You are not allowed to open this book. Check your Adobe ID,)
    I have been able to read the ebooks earlier but some months ago (or earlier, I don´t know exactly) this happened. I have a valid Adobe ID and have bought and downloaded the books from big and established book shops.
    Do somebody know what has happened? And what I can do, to be able to read the books?

    Same issue. I looked through the forums, contacted customer service both online and by phone.  Support just refers me to the forums or to the other method of contacting customer support.  This seems like such a basic issue, too.

  • How play audiobook with code DRM 10 (Digital Rights Management) on my iPhone

    Hello
    I like to borrow e-books from my local library.
    The library use audiobook the is code with DRM 10 (Digital Rights Management)
    I like to play the the e-books on my iPhone, how can I do that ?

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • What's the Bennefit of Digital Rights Management? re: Audigy2 Upd

    Regarding the newly posted Audigy2 update, if you already have the previous 3 updates loaded, what is the bennefit of Digital Rights Management?
    Edit, found this.
    "SPDIF output is not available during playback of protected <B>digital</B> audio contents authored with Microsoft DRM (<B>Digital</B> <B>Rights</B> <B>Management</B>) technology. "
    Message Edited by johnston2 on <SPAN class=date_text>-27-2004<SPAN class=time_text>08:36 PM
    Message Edited by johnston2 on -27-2004 08:37 PM

    Hi. Thanks.
    I loan out CD's and records to friend but to my knowledge they just use it to listen to, they then do the same for me.
    So if I get this correctly, downloading music from iTunes is like downloading Apps in that it does not matter which device I load it onto? Or is there a hiccup here in terms of having a laptop, desktop and iPhone? For instance my iPhone is synced up to my laptop (it used to be synced to the desktop) and I had/have to be very careful about making sure I transferred my Apps over to the laptop - using the iPhone I think - when I started syncing the device with the laptop. There was some risk of losing all the Apps if I did this correctly, no?
    Is it the same with music downloads? should I only download from my iPhone/laptop combo or an iPhone/desktop combo? I mean, I actually find it /more/ convenient to do things on the desktop machine but this makes it hard to sync with the laptop if I am traveling so I now only download APPS to the laptop machine.
    Does this question make sense? Do I need to use one computer or another for this?
    Also, in terms of my other burned CD Roms (that are now digital), I assume these are non DRM and I can move them laptop to desktop to iPhone and back with no issues whatsoever?
    I mean is there a difference in this respect between iTunes downloaded songs and ripped songs from my collection?
    Thanks.

  • MSI Megaview 566 & Digital Rights Management files

    I was wondering if someone could help me. I downloaded a music file (wma format, 256 kbps) and copied it to my Megaview 566, but it won't play. The supplier says that the media player that the song is copied to must be Digital Rights Management (DRM) compatible. Is the 566 DRM compatible, and what can I do to get downloaded songs to play?
    Thanks in advance.

    MS-5566 didn’t support WMA with DRM audio files, but I have a solution for you reference, when you download music, you can burn to CD and use “Windows Media Player 10” to transfer WMA V9 format, because 5566 can support WMA V9 audio format!!
    Transferring WMA format procedure by “Windows Media Player 10”
    1. Open Windows Media Player 10.
    2. Go to tools\Option\ Rip Music\ Rip Settings and selected.
    3. Insert CD audio and start ripping.

  • Digital Rights Management on iPad

    When will Reader app on iOS support digital rights management such as ProtectedPDF? Most of my books for school come with this and I would like to read them on my iPad like regular Ebooks. I can only read the pages with a web connected Windows computer - very frustrating for a train commuter like myself.

    The Adobe Reader does not support opening these books. I believe that the "BlueFire Reader" does support this though.

  • Digital rights management files

    I'm trying to activate OverDrive Media console by downloading a Windows Media Player security upgrade. I get error message 'A problem has occurred in opening the digital rights management data storage file. Contact Microsoft product'.
    If I select the web address to take you to the Microsoft page to download the upgrade, the 'Install' button is greyed out and inactive.
    Apparently you can rename your DRM folder and solve this problem, but I can't find this folder.
    COmputer is Satellite A100 running with Vista Home edition.
    Can anyone help?

    Have you tried using the Microsoft DRM upgrade HERE?  I recall having issues myself in getting OverDrive Media Console to work.  I'm sure glad the ignorant buffoons in Congress and the media producers have given us this great DRM system to protect us all from the evils of fair use.

  • Digital right managment software corrupt ??

    Hi,?Zen Micro 2 years old, subscribe thru Napster with no problems till recently. use Windows XP and everything is up to date. This is the message that I get:Your creative aen micro needs to be reformatted because your digital rights management software became corrupt. To find out how to reformat, please reference user guide or contact manufactur. You cannot use this device utilthis is reformatted.HELP

    Digital Voice Recorder Model # ICD-P620 is not compatible with MAC OS.
    Compatible OS are as follows:
    Windows Vista Home Basic
    Windows Vista Home Premium
    Windows Vista Home Business
    Windows Vista Home Ultimate
    Windows XP Home Edition Service Pack 2 or Higher
    Windows XP Professional Service Pack 2 or Higher
    Windows XP Media Center Edition 2004 Service Pack 2 or Higher
    Windows XP Media Center Edition 2005 Service Pack 2 or Higher
     Windows 2000 Professional Service Pack 4 or Higher pre-installed
    Note!
    64 bit OS is not supported.
    If my post answers your question, please mark it as "Accept as Solution"....

  • Protected by Digital rights management

    I have purchased and read several books successfully on my Sony PRST1 but recently had a computer virus when a lot of data was wiped.
    The books still show up on on both Reader for pc and the PRST1 but cannot be opened with the warning Protected by Digital rights management?
    I have tried to reset my adobe id both nothing seems to work, any ideas?

    I would ask in then Digital Editions forum, Adobe Digital Editions

  • Can Digital Rights Management protect Free Books Account?

    Hello,
    Does anyone know if the Digital Rights Management protect Free Books Account?
    Kind Regards,
    Sonia

    Define 'protect'...
    Or do you mean is it an option for free books versus paid?

Maybe you are looking for

  • Having trouble updating my 4th gen iPod touch to iOS 6

    I have a 4th generation iPod touch which is currently running iOS 4.3.2. It is not jailbroken, it is registered to me, and there is to my knowledge nothing wrong with it. I installed the latest version of iTunes on my girlfriend's computer because I

  • Problem by adding attachments in Java Mapping

    Hi, we have to add some attachments in Java Mapping. So we are using the Java Mapping API. But it doesn't work correctly. We got the following error in sxmb_moni: Attribute Manifest ExampleAttachment is initial So we checked what happened in the Mani

  • Typing lag

    I have a Compaq Presario S5180AP and recently I replaced the motherboard to a MSI 865GM2-LS. I also added a Radeon 9600 Pro to my system When I type it is very laggy. I have to wait like 2 seconds for each character to appear on the screen and if I t

  • Nokia 3250, Settings option is missing in tools Me...

    Dear my mobile 3250 is not functioing properly, the settings menu is automatically remove from tools menu, and joystick is not functioning . I already update my mobile softwae through nokia site but noting change. do anyone help me in this problem

  • HELP!!!! Flex & Active Directory

    Hi, Can anyone please help me with a sample code/project on how to use/access Active directory in my flex web application. Please help. Regards