Examples of supportsAccountCreation()


Examples of com.adito.security.UserDatabase.supportsAccountCreation()

        udb = UserDatabaseManager.getInstance().getUserDatabase(user.getRealm().getResourceId());
    } catch (Exception e1) {
        return SKIP_BODY;
    }

    if(!udb.supportsAccountCreation() && requiresAccountCreation) {
      return SKIP_BODY;
    }
    if(!udb.supportsPasswordChange() && requiresPasswordChange) {
      return SKIP_BODY;
    }
View Full Code Here

Examples of com.adito.security.UserDatabase.supportsAccountCreation()

                errors.add(Globals.ERROR_KEY, new ActionMessage("createAccount.error.noUsername"));
            }
            if (username.length() > 75) {
                errors.add(Globals.ERROR_KEY, new ActionMessage("createAccount.error.usernameExceeds75Chars"));
            }
            if (udb.supportsAccountCreation()) {
                if (fullname == null || fullname.length() == 0) {
                    errors.add(Globals.ERROR_KEY, new ActionMessage("createAccount.error.noFullName"));
                }
                if (fullname.length() > 75) {
                    errors.add(Globals.ERROR_KEY, new ActionMessage("createAccount.error.fullNameExceeds75Chars"));
View Full Code Here

Examples of org.jivesoftware.smack.AccountManager.supportsAccountCreation()

                    } catch (XMPPException e) {
                        final XMPPError error = e.getXMPPError();
                        // 401 == Not Authorized
                        if (error != null && error.getCode() == 401) {
                            // is ist possible to create Accounts?
                            if (accountManager.supportsAccountCreation()) {
                                //try to create the Account (maybe it wasn't there)
                                accountManager.createAccount(user, password);
                                log.info("Logging in to Jabber as user: " + user + " on connection: " + connection);
                                // try to login again (if this fails we are screwed and fail ultimatively)
                                connection.login(user, password, resource);
View Full Code Here

Examples of org.jivesoftware.smack.AccountManager.supportsAccountCreation()

                    } catch (XMPPException e) {
                        final XMPPError error = e.getXMPPError();
                        // 401 == Not Authorized
                        if (error != null && error.getCode() == 401) {
                            // is ist possible to create Accounts?
                            if (accountManager.supportsAccountCreation()) {
                                //try to create the Account (maybe it wasn't there)
                                accountManager.createAccount(user, password);
                                log.info("Logging in to Jabber as user: " + user + " on connection: " + connection);
                                // try to login again (if this fails we are screwed and fail ultimatively)
                                connection.login(user, password, resource);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.