protected abstract void addToken(SoapMessage message);
protected abstract Token assertTokens(SoapMessage message);
protected Token assertTokens(SoapMessage message, QName assertion, boolean signed) {
AssertionInfoMap aim = message.get(AssertionInfoMap.class);
Collection<AssertionInfo> ais = aim.getAssertionInfo(assertion);
Token tok = null;
for (AssertionInfo ai : ais) {
tok = (Token)ai.getAssertion();
ai.setAsserted(true);
}
ais = aim.getAssertionInfo(SP12Constants.SUPPORTING_TOKENS);
for (AssertionInfo ai : ais) {
ai.setAsserted(true);
}
if (signed || isTLSInUse(message)) {
ais = aim.getAssertionInfo(SP12Constants.SIGNED_SUPPORTING_TOKENS);
for (AssertionInfo ai : ais) {
ai.setAsserted(true);
}
}
return tok;