Package net.octal.tools.base

Examples of net.octal.tools.base.PasswordGenerator


       
        /* The customerId is empty, which means we must create the Customer */
        if (customerId.isEmpty())
        {
            final Person customer = (Person) request.getSession().getAttribute("customer");
            PasswordGenerator generator = Generator.newPasswordGenerator(8, true, true, true, true);
            try {
                final String password = generator.generate();
                HashFunction hf = Hashing.sha1();
                HashCode hc = hf.newHasher()
                    .putString(password)
                    .hash();
                customer.setPassword(hc.toString());
View Full Code Here

TOP

Related Classes of net.octal.tools.base.PasswordGenerator

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.