(Integer) wser.get(WSSecurityEngineResult.TAG_ACTION);
if (WSConstants.ST_UNSIGNED == actInt.intValue()) {
Object samlAssertion = wser.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
SAMLAssertionHandler samlAssertionHandler
= SAMLAssertionHandlerFactory.createAssertionHandler(samlAssertion);
if (samlAssertionHandler.isBearerAssertion()) {
break;
}
//Store the token
try {
TokenStorage store = rmd.getTokenStorage();
if (store.getToken(samlAssertionHandler.getAssertionId()) == null) {
Token token = new Token(samlAssertionHandler.getAssertionId(),
samlAssertionHandler.getAssertionElement(),
samlAssertionHandler.getDateNotBefore(),
samlAssertionHandler.getDateNotOnOrAfter());
token.setSecret(samlAssertionHandler.
getAssertionKeyInfoSecret(signatureCrypto, tokenCallbackHandler));
store.add(token);
}
} catch (Exception e) {
throw new RampartException(