Package org.mortbay.util

Examples of org.mortbay.util.Password


        server.addListener( listener );
        log.info( "...added shutdown listener for port " + SHUTDOWN_PORT );
       
        // Set the default users and roles for the realm (note that realm name *must* match web.xml <realm-name>
        HashUserRealm realm = new HashUserRealm( "JSPWikiRealm" );
        realm.put( Users.ADMIN, new Password( Users.ADMIN_PASS ) );
        realm.addUserToRole( Users.ADMIN, "Authenticated" );
        realm.addUserToRole( Users.ADMIN, "Admin" );
        realm.put( Users.JANNE, new Password( Users.JANNE_PASS ) );
        realm.addUserToRole( Users.JANNE, "Authenticated" );
        server.addRealm( realm );
    }
View Full Code Here

TOP

Related Classes of org.mortbay.util.Password

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.