Package org.openengsb.core.services.internal.security

Examples of org.openengsb.core.services.internal.security.OpenEngSBAuthenticationToken


public class ShiroContext implements AuthenticationContext {

    @Override
    public void login(String username, Credentials credentials) {
        Subject subject = SecurityUtils.getSubject();
        OpenEngSBAuthenticationToken token = new OpenEngSBAuthenticationToken(username, credentials);
        subject.login(token);
    }
View Full Code Here


        result.get();
    }

    private void authenticate(String user, String password) {
        Subject subject = SecurityUtils.getSubject();
        subject.login(new OpenEngSBAuthenticationToken(user, new Password(password)));
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.services.internal.security.OpenEngSBAuthenticationToken

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.