mapSecurityProps(message, ctx);
return s;
}
private static AlgorithmSuite getAlgorithmSuite(AssertionInfoMap aim) {
Binding transport = null;
Collection<AssertionInfo> ais = aim.get(SP12Constants.TRANSPORT_BINDING);
if (ais != null) {
for (AssertionInfo ai : ais) {
transport = (Binding)ai.getAssertion();
}
} else {
ais = aim.get(SP12Constants.ASYMMETRIC_BINDING);
if (ais != null) {
for (AssertionInfo ai : ais) {
transport = (Binding)ai.getAssertion();
}
} else {
ais = aim.get(SP12Constants.SYMMETRIC_BINDING);
if (ais != null) {
for (AssertionInfo ai : ais) {
transport = (Binding)ai.getAssertion();
}
}
}
}
if (transport != null) {
return transport.getAlgorithmSuite();
}
return null;
}