List of usage examples for org.apache.wicket.authentication IAuthenticationStrategy save
void save(final String credential, final String... extraCredentials);
From source file:org.yes.cart.shoppingcart.impl.WicketLoginCommandImpl.java
License:Apache License
/** {@inheritDoc} */ @Override/*from ww w.j a v a 2s.c o m*/ public void execute(final MutableShoppingCart shoppingCart, final Map<String, Object> parameters) { super.execute(shoppingCart, parameters); if (parameters.containsKey(getCmdKey()) && shoppingCart.getLogonState() == ShoppingCart.LOGGED_IN) { final String email = (String) parameters.get(CMD_LOGIN_P_EMAIL); final String passw = (String) parameters.get(CMD_LOGIN_P_PASS); final IAuthenticationStrategy strategy = Application.get().getSecuritySettings() .getAuthenticationStrategy(); strategy.save(email, passw); } }