If you plan on using the java xml-rpc API's and SOAP to access AWS this implementation of the javax.xml.rpc.handler.GenericHandler abstract class will be a requirement especially if you plan on using code generators like AXIS wsdl2Java. After you've generated your javax.xml.rpc code you'll need to add an instance of this handler class to the handler chain of each AWS port you plan on calling. For example:
AWSSecurityHandler.setKeys(aMyKey,aMySecret);
QName aQueueServicePortName = new QName("http://queue.amazonaws.com/doc/2008-01-01/","QueueServiceHttpsPort");
List aHandlerChain = aRegistry.getHandlerChain(aQueueServicePortName);
HandlerInfo aHandlerInfo = new HandlerInfo();
aHandlerInfo.setHandlerClass(AWSSecurityHandler.class);
aHandlerChain.add(aHandlerInfo);