@Override public void onSubmit() { MasterPasswordConfig config = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager().saveMasterPasswordConfig(config); doReturn(); } catch (Exception e) { error(e); } } });
@Override public void onSubmit() { MasterPasswordConfig config = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager().saveMasterPasswordConfig(config); doReturn(); } catch (Exception e) { error(e); } } });
@Override public void onSubmit() { MasterPasswordConfig config = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager().saveMasterPasswordConfig(config); doReturn(); } catch (Exception e) { error(e); } } });
m.saveMasterPasswordConfig( m.loadMasterPasswordConfig(), currentArray, newpassArray, newpassArray); } catch (Exception e) {
@Override public void onSubmit() { Form f = getForm(); // @Justin, we cannot use getDefaultModelObjectAsString() because of special chars. // example: The password "mcrmcr&1" is converted to "mcrmcr&1". String currPasswd = //f.get("currentPassword").getDefaultModelObjectAsString(); (String) f.get("currentPassword").getDefaultModelObject(); String newPasswd = //f.get("newPassword").getDefaultModelObjectAsString(); (String) f.get("newPassword").getDefaultModelObject(); String newPasswdConfirm = // f.get("newPasswordConfirm").getDefaultModelObjectAsString(); (String) f.get("newPasswordConfirm").getDefaultModelObject(); MasterPasswordConfig mpConfig = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager().saveMasterPasswordConfig(mpConfig, currPasswd.toCharArray(), newPasswd != null ? newPasswd.toCharArray() : null, newPasswdConfirm.toCharArray()); doReturn(); } catch (Exception e) { error(e); } } });
@Override public void onSubmit() { Form f = getForm(); // @Justin, we cannot use getDefaultModelObjectAsString() because of special chars. // example: The password "mcrmcr&1" is converted to "mcrmcr&1". String currPasswd = //f.get("currentPassword").getDefaultModelObjectAsString(); (String) f.get("currentPassword").getDefaultModelObject(); String newPasswd = //f.get("newPassword").getDefaultModelObjectAsString(); (String) f.get("newPassword").getDefaultModelObject(); String newPasswdConfirm = // f.get("newPasswordConfirm").getDefaultModelObjectAsString(); (String) f.get("newPasswordConfirm").getDefaultModelObject(); MasterPasswordConfig mpConfig = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager().saveMasterPasswordConfig(mpConfig, currPasswd.toCharArray(), newPasswd != null ? newPasswd.toCharArray() : null, newPasswdConfirm.toCharArray()); doReturn(); } catch (Exception e) { error(e); } } });
@Override public void onSubmit() { Form f = getForm(); // @Justin, we cannot use getDefaultModelObjectAsString() because of special // chars. // example: The password "mcrmcr&1" is converted to "mcrmcr&1". String currPasswd = // f.get("currentPassword").getDefaultModelObjectAsString(); (String) f.get("currentPassword").getDefaultModelObject(); String newPasswd = // f.get("newPassword").getDefaultModelObjectAsString(); (String) f.get("newPassword").getDefaultModelObject(); String newPasswdConfirm = // f.get("newPasswordConfirm").getDefaultModelObjectAsString(); (String) f.get("newPasswordConfirm").getDefaultModelObject(); MasterPasswordConfig mpConfig = (MasterPasswordConfig) getForm().getModelObject(); try { getSecurityManager() .saveMasterPasswordConfig( mpConfig, currPasswd.toCharArray(), newPasswd != null ? newPasswd.toCharArray() : null, newPasswdConfirm.toCharArray()); doReturn(); } catch (Exception e) { error(e); } } });
getSecurityManager().saveMasterPasswordConfig(config, null, null, null); fail(); } catch (MasterPasswordChangeException ex) { config.setProviderName(mpConfig.getName()); getSecurityManager() .saveMasterPasswordConfig( config, masterPWAsString.toCharArray(), .saveMasterPasswordConfig( config, "geoserver1".toCharArray(), null, "geoserver2".toCharArray()); config.setProviderName("test"); getSecurityManager() .saveMasterPasswordConfig( config, "geoserver2".toCharArray(),