Thanx, Colm. But the storeElementInContext() method is looking for a domCryptoContext, that is created during computeSignature. I'm guessing I'll have to override computeSignature to do that?
Stephen W. Chappell -----Original Message----- From: Colm O hEigeartaigh [mailto:[email protected]] Sent: Monday, November 24, 2014 5:59 AM To: [email protected] Subject: Re: org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID You need to tell Santuario how to resolve the SecurityTokenReference Element. You can do this by a utility method in WSSecurityUtil, e.g.: WSSecurityUtil.storeElementInContext(domCryptoContext, strElement); See here for an example: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/message/WSSecSignature.java?view=markup Colm.
