Digital Measures sample code
I'm in the middle of setting up the Digital Measures single sign on. The next step requires some administrator input, so while I'm waiting on that I thought I'd post the code that will solve 90% of the problem of SSO from Luminis to Digital Measures.
It looks like 1 or 2 people have searched on this in the past so I hope this is helpful.
Attached are 2 files:
DigitalMeasuresTokenAuthenticationBuilder.java was given to me by someone at Digital Measures and it does the actual work (the instrunctions on their website are very lacking). I had to make a few changes:
- Line #40: import sun.misc.BASE64Encoder; Not running on Solaris so I didn't have access to this. I instead import the Base64.java file
- Line #143: this is the reference to the Sun class, I instead use: return Base64.encodeBytes(bytes);
I believe those are the only changes I had to make. I did spend some time figuring out how to do the AES encryption so the TokenAuthenticationBuilder makes a bit more sense to me than if I had just received it.
Also make sure to rename the file to the Class.java name, right now its got a different file name. This class should be easy enough to import into a portlet.
For a little more background on this post, you can see the forum disucssion: http://www.lumdev.net/node/1957

Recent comments
15 hours 19 min ago
17 hours 5 min ago
21 hours 38 min ago
22 hours 39 min ago
1 day 16 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 19 min ago