Package org.apache.jetspeed.security

Examples of org.apache.jetspeed.security.SecurityException


        {
            provider.getCredentialHandler().setPasswordUpdateRequired(userName,updateRequired);
        }
        else
        {
            throw new SecurityException(SecurityException.INVALID_AUTHENTICATION_PROVIDER.create(authenticationProvider));
        }
    }
View Full Code Here


        {
            setPasswordUpdateRequired(userName, updateRequired, providerName);
        }
        else
        {
            throw new SecurityException(SecurityException.USER_DOES_NOT_EXIST.create(userName));
        }
    }
View Full Code Here

        {
            return provider.getCredentialHandler().authenticate(userName, password);
        }
        else
        {
            throw new SecurityException(SecurityException.INVALID_AUTHENTICATION_PROVIDER.create(authenticationProvider));
        }
    }
View Full Code Here

        {
            return authenticate(userName, password, providerName);
        }
        else
        {
            throw new SecurityException(SecurityException.USER_DOES_NOT_EXIST.create(userName));
        }
    }
View Full Code Here

                .notNull(new Object[]
                { username, atnProviderName}, new String[]
                { "username", "atnProviderName"},
                        "addUser(java.lang.String, java.lang.String, java.lang.String)");

        if (getAnonymousUser().equals(username)) { throw new SecurityException(
                SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); }

        // Check if user already exists.
        if (userExists(username)) {
            throw new SecurityException(SecurityException.USER_ALREADY_EXISTS.create(username));
        }

        UserPrincipal userPrincipal = new UserPrincipalImpl(username);
        String fullPath = userPrincipal.getFullPath();
        // Add the preferences.
View Full Code Here

    {
        ArgUtil.notNull(new Object[]
        { username}, new String[]
        { "username"}, "removeUser(java.lang.String)");

        if (getAnonymousUser().equals(username)) { throw new SecurityException(
                SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); }
        UserPrincipal userPrincipal = new UserPrincipalImpl(username);
        String fullPath = userPrincipal.getFullPath();
        atnProviderProxy.removeUserPrincipal(userPrincipal);
        // Remove preferences
View Full Code Here

        Set principals = new HashSet();
        String fullPath = (new UserPrincipalImpl(username)).getFullPath();

        Principal userPrincipal = atnProviderProxy.getUserPrincipal(username);
        if (null == userPrincipal) {
            throw new SecurityException(SecurityException.USER_DOES_NOT_EXIST.create(username));
        }

        principals.add(userPrincipal);
        principals.addAll(securityMappingHandler.getRolePrincipals(username));
        principals.addAll(securityMappingHandler.getGroupPrincipals(username));
View Full Code Here

                .notNull(new Object[]
                { username, newPassword}, new String[]
                { "username", "newPassword"},
                        "setPassword(java.lang.String, java.lang.String, java.lang.String)");

        if (getAnonymousUser().equals(username)) { throw new SecurityException(
                SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); }
        atnProviderProxy.setPassword(username, oldPassword, newPassword);
    }
View Full Code Here

    {
        ArgUtil.notNull(new Object[]
        { userName,}, new String[]
        { "userName"}, "setPasswordEnabled(java.lang.String, boolean)");

        if (getAnonymousUser().equals(userName)) { throw new SecurityException(
                SecurityException.ANONYMOUS_USER_PROTECTED.create(userName)); }
        atnProviderProxy.setPasswordEnabled(userName, enabled);
    }
View Full Code Here

    {
        ArgUtil.notNull(new Object[]
        { userName,}, new String[]
        { "userName"}, "setPasswordUpdateRequired(java.lang.String, boolean)");

        if (getAnonymousUser().equals(userName)) { throw new SecurityException(
                SecurityException.ANONYMOUS_USER_PROTECTED.create(userName)); }
        atnProviderProxy.setPasswordUpdateRequired(userName, updateRequired);
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.SecurityException

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.