Package org.kie.remote.services.jms.security

Examples of org.kie.remote.services.jms.security.UserPassCallbackHandler


     * @return The logged-in {@link Subject}
     * @throws LoginException If something goes wrong when trying to login.
     */
    private Subject tryLogin(String[] userPass) throws LoginException {
        try {
            CallbackHandler handler = new UserPassCallbackHandler(userPass);
            LoginContext lc = new LoginContext("kie-jms-login-context", handler);
            lc.login();
            return lc.getSubject();
        } catch( Exception e ) {
            logger.error( "Unable to login via JAAS with message supplied user and password", e);
View Full Code Here

TOP

Related Classes of org.kie.remote.services.jms.security.UserPassCallbackHandler

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.