On Thu, 2005-07-28 at 22:04 +0200, Stefan Schulz wrote: Some corrections to the code *sigh*
1) Lost one line in copy & paste. Add a import static org.apache.xml.security.signature.XMLSignature.*; > import java.io.ByteArrayInputStream; > import java.io.ByteArrayOutputStream; > import java.security.PrivateKey; > import java.security.PublicKey; > [...] > if (pub == null){ // no definite PK, use provided PK of > signature This should obviously be part of the comment. Linewrapping got me here. -- You can't run away forever, But there's nothing wrong with getting a good head start. --- Jim Steinman, "Rock and Roll Dreams Come Through"