returnKey = (Key) sentSamlKeys.get(referenceValue);
}
}
if (context.hasIssuedToken() && returnKey != null) {
SecurityTokenReference str = new SecurityTokenReference(context.getSOAPVersion());
com.sun.xml.ws.security.opt.impl.reference.KeyIdentifier ki = new com.sun.xml.ws.security.opt.impl.reference.KeyIdentifier(context.getSOAPVersion());
ki.setValueType(valueType);
ki.setReferenceValue(referenceValue);
str.setReference(ki);
SecurityUtil.initInferredIssuedTokenContext(context, str, returnKey);
}
} else {
// assume SAML AssertionID without ValueType on KeyIdentifier
// now assume its an X509Token