Displaying keyword search results 1 - 4
Created by Dr. Xi on April 29, 2013 09:00:48 Last update: April 29, 2013 09:00:48
In the case proposed by Diony , signing multiple elements by id, simply change the newSignedInfo to:
// Create the SignedInfo final List transforms0...I must admit that I don't understand transformations, so take my example code with a grain of salt. Also, signing a doc fragment by PATH does not work, simply because there's no way to identify the fragment with a URI without referring to it by id. Reference ode from org.jcp.xml.dsig.internal.dom.DOMURIDereferencer :
// Check if same-document URI and register...
Created by Dr. Xi on February 24, 2010 21:13:05 Last update: February 24, 2010 21:19:54
This program demonstrates the use of the java.nio package to implement a single thread echo server.
import java.io.IOException; import java.net.Ine...
Created by Dr. Xi on January 08, 2010 03:53:37 Last update: January 08, 2010 03:54:56
This is an Ant custom task to merge Properties files I lifted from http://marc.info/?l=ant-user&m=106442688632164&w=2 , with some minor bug fixes. Example usage:
<taskdef name="mergeProperty" classname="ant.task....Implementation:
package ant.task.addon; import java.io.Buff...
Created by Dr. Xi on September 25, 2008 02:56:24 Last update: September 25, 2008 03:00:10
When you use a TreeMap , the entries in the Map is sorted by the keys. This following code outputs the elements of the map sorted by value.
import java.util.*; @SuppressWarnings("...The output is:
key: e, value: be key: g, value: by key:...