Package com.adito.properties.impl.realms

Examples of com.adito.properties.impl.realms.RealmKey


                throw new FieldValidationException("oldPasswordIncorrect");
            } else {
                // Check that the password matches the current policy, if not
                // then request a new one
                try {
                    String pattern = Property.getProperty(new RealmKey("security.password.pattern", user.getRealm().getResourceId()));
                    Pattern p = Pattern.compile(pattern);
                    if (!p.matcher(newPassword).matches()) {
                        throw new FieldValidationException("doesNotMatchPolicy");
                    }
                } catch(FieldValidationException fve) {
View Full Code Here


                errors.add(Globals.ERROR_KEY, new ActionMessage("setPassword.error.newAndConfirmPasswordsDontMatch"));
            } else {
                // Check that the password matches the current policy, if
                // not then request a new one
                try {
                    String pattern = Property.getProperty(new RealmKey("security.password.pattern", getUser().getRealm().getResourceId()));
                    Pattern p = Pattern.compile(pattern);
                    if (!p.matcher(newPassword).matches()) {
                        errors.add(Globals.ERROR_KEY, new ActionMessage("setPassword.error.doesNotMatchPolicy"));
                    }
                } catch (Exception e) {
View Full Code Here

            baw.writeString(Property.getProperty(new SystemConfigKey(name)));           
            break;
          }
          case REALM:
          {
            baw.writeString(Property.getProperty(new RealmKey(name, tunnel.getSession().getRealmId())));
          }
          default:
          {
            log.error("Agent requested invalid property type!");
            return false;
View Full Code Here

TOP

Related Classes of com.adito.properties.impl.realms.RealmKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.