Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
jarek-przygodzki / unsignjar.xml
Created February 18, 2013 21:48
Unsign a JAR with Ant
<!-- http://frank.zinepal.com/unsign-a-jar-with-ant -->
<macrodef name="unsignjar">
<attribute name="jar"/>
<sequential>
<!-- Remove any existing signatures from a JAR file. -->
<tempfile prefix="usignjar-" destdir="${java.io.tmpdir}" property="temp.file"/>
<echo message="Removing signatures from JAR: @{jar}"/>
<mkdir dir="${temp.file}"/>
@dblock
dblock / ActiveDirectoryDecoratorFilter.java
Created June 27, 2012 13:31
Obtain additional user information from ActiveDirectory using Com4J
//
// from http://waffle.codeplex.com/workitem/10034
//
package waffle.servlet.spi;
import java.io.IOException;
import java.security.Principal;
import java.util.Date;
import java.util.Enumeration;