Package org.modeshape.jcr.security.JaasSecurityContext

Examples of org.modeshape.jcr.security.JaasSecurityContext.UserPasswordCallbackHandler


        startRepositoryWith(config, repoName);

        // Verify the JAAS was configured correctly ...
        session = repository.login(new SimpleCredentials("readwrite", "readwrite".toCharArray()));

        LoginContext login = new LoginContext("modeshape-jcr", new UserPasswordCallbackHandler("superuser",
                                                                                               "superuser".toCharArray()));
        login.login();

        Subject subject = login.getSubject();
View Full Code Here

TOP

Related Classes of org.modeshape.jcr.security.JaasSecurityContext.UserPasswordCallbackHandler

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.