Package org.apache.turbine.util.security

Examples of org.apache.turbine.util.security.EntityExistsException


    public void createAccount( User user, String initialPassword )
        throws EntityExistsException, DataBackendException
    {
        if(accountExists(user))
        {
            throw new EntityExistsException("The account '" +
                user.getUserName() + "' already exists");
        }
        String encrypted = TurbineSecurity.encryptPassword(initialPassword);
        user.setPassword(encrypted);
        Criteria criteria = TurbineUserPeer.buildCriteria(user);
View Full Code Here

TOP

Related Classes of org.apache.turbine.util.security.EntityExistsException

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.