Archive for June, 2011

Calculating MD5 hash for a File


Below Code can be used for calculating md5 hash of a file. It uses 2 libraries from apache commons project. One is common-codec and other one is commons-io. package com.wordpress.narendrakadali.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.commons.io.IOUtils; /** * @author narendra */ public class Main { /** * @param args */ public […]

Leave a comment


2 Comments

Sign SAML Assertion using OpenSAML


Hi All, After long time I am posting some useful stuff to my blog. In this post I am trying to write code for signign assertion which is generated by OpenSAML ans signing is aslo performed by OpenSAML API’s. Generating SAML assertion code can be found at http://blog.keksrolle.de/2010/07/27/how-to-create-a-valid-saml-2-0-assertion-with-opensaml-for-java.html The code below uses keystore and x509 […]

, , , ,

16 Comments