this.store = store;
}
public Collection<String> process(Document message, SecurityProcess process) throws WSSecurityException
{
Signature signature = (Signature) process;
XMLSignature xmlSig = signature.getSignature();
xmlSig.addResourceResolver(new WsuIdResolver(message));
STRTransform.setSecurityStore(store);
try
{
if (! xmlSig.checkSignatureValue(signature.getPublicKey()))
throw new FailedCheckException("Signature is invalid.");
SignatureKeysAssociation.saveKey(signature.getPublicKey());
}
catch (XMLSignatureException e)
{
throw new WSSecurityException("An unexpected error occured while verifying signature", e);
}