AssertionInfoMap aim = message.get(AssertionInfoMap.class);
if (aim != null) {
Collection<AssertionInfo> ais = aim.get(SP12Constants.SAML_TOKEN);
if (ais != null && !ais.isEmpty()) {
for (AssertionInfo ai : ais) {
SamlToken samlToken = (SamlToken)ai.getAssertion();
SupportingToken supportingToken = samlToken.getSupportingToken();
if (supportingToken != null && supportingToken.getAlgorithmSuite() != null) {
AlgorithmSuite algorithmSuite =
translateAlgorithmSuite(supportingToken.getAlgorithmSuite());
data.setSamlAlgorithmSuite(algorithmSuite);
break;