Examples of LoginService


Examples of org.eclipse.jetty.security.LoginService

        stream.defaultReadObject();
       
        SecurityHandler security=SecurityHandler.getCurrentSecurityHandler();
        if (security==null)
            throw new IllegalStateException("!SecurityHandler");
        LoginService login_service=security.getLoginService();
        if (login_service==null)
            throw new IllegalStateException("!LoginService");
       
        _userIdentity=login_service.login(_name,_credentials);
        LOG.debug("Deserialized and relogged in {}",this);
    }
View Full Code Here

Examples of org.eclipse.jetty.security.LoginService

            Permissions unchecked = new Permissions();
            unchecked.add(new WebUserDataPermission("/", null));
            unchecked.add(new WebResourcePermission("/", ""));
            ComponentPermissions componentPermissions = new ComponentPermissions(new Permissions(), unchecked, Collections.<String, PermissionCollection>emptyMap());
            setUpJACC(Collections.<String, SubjectInfo>emptyMap(), Collections.<Principal, Set<String>>emptyMap(), componentPermissions, policyContextId);
            LoginService loginService = newLoginService();
//            final ServletCallbackHandler callbackHandler = new ServletCallbackHandler(loginService);
            final Subject subject = new Subject();
            final AccessControlContext acc = ContextManager.registerSubjectShort(subject, null, null);
            securityHandlerFactory = new ServerAuthenticationGBean(new Authenticator() {
                public Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory) throws ServerAuthException {
View Full Code Here

Examples of org.eclipse.jetty.security.LoginService

    }

    protected WebAppContextWrapper setUpSecureAppContext(String securityRealmName, Map<String, SubjectInfo> roleDesignates, Map<Principal, Set<String>> principalRoleMap, ComponentPermissions componentPermissions, SubjectInfo defaultSubjectInfo, PermissionCollection checked, Set securityRoles) throws Exception {
        String policyContextId = "TEST";
        ApplicationPolicyConfigurationManager jacc = setUpJACC(roleDesignates, principalRoleMap, componentPermissions, policyContextId);
        LoginService loginService = newLoginService();
        Authenticator serverAuthentication = new FormAuthenticator("/auth/logon.html?param=test", "/auth/logonError.html?param=test", true);
        SecurityHandlerFactory securityHandlerFactory = new ServerAuthenticationGBean(serverAuthentication, loginService);
        return setUpAppContext(
                securityRealmName,
                securityHandlerFactory,
View Full Code Here

Examples of org.itschool_hillel.java.server.security.LoginService

@WebServlet(value="/logout.html")
public class LogoutServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        new LoginService().logout(req);
        resp.sendRedirect("/");
    }
View Full Code Here

Examples of org.jdesktop.swingx.auth.LoginService

    if (!isLock()) {
      return true;
    }

    // ask for data
    JXLoginDialog login = new JXLoginDialog(new LoginService() {
      @Override
      public boolean authenticate(String name, char[] password, String server) {

        String type = getCryptotyp();
View Full Code Here

Examples of org.jdesktop.swingx.auth.LoginService

    }

    @Override
     public void onPreStartup()
    {
        jxLoginDialog = new JXLoginDialog(new LoginService()
        {
            @Override
            public boolean authenticate(String name, char[] password, String server) throws Exception
            {
                Thread.sleep(2000);
View Full Code Here

Examples of org.jdesktop.swingx.auth.LoginService

     * @param service
     *            the service to set. If {@code service == null}, then a
     *            {@code NullLoginService} is used.
     */
    public void setLoginService(LoginService service) {
        LoginService oldService = getLoginService();
        LoginService newService = service == null ? new NullLoginService() : service;

        //newService is guaranteed to be nonnull
        if (!newService.equals(oldService)) {
            if (oldService != null) {
                oldService.removeLoginListener(getDefaultLoginListener());
            }

            loginService = newService;
View Full Code Here

Examples of org.jdesktop.swingx.auth.LoginService

  public static void askLoginInformation() {
    SwingUtilities.invokeLater(new Runnable() {

      @Override
      public void run() {
        JXLoginPane loginPanel = new JXLoginPane(new LoginService() {

          @Override
          public boolean authenticate(String arg0, char[] arg1, String arg2) throws Exception {
            return true;
          }
View Full Code Here

Examples of org.jitterbit.integration.client.server.login.LoginService

        this.userManager = userManager;
        loginService = createLoginService();
    }

    private LoginService createLoginService() {
        LoginService loginService = new LoginServiceImpl(this);
        loginService.addLoginListener(new LoginListener.Adapter() {

            @Override
            public void postLogin(LoginEvent evt) {
                registerNewServer(evt);
                updateUsersAndGroups();
View Full Code Here

Examples of org.jitterbit.integration.client.server.login.LoginService

    }

    public void connect(String server, String user, String pwd, boolean isHash) throws Throwable {
      consoleWriter.log("Connecting to the server " + server + "...");
        Callback cb = new Callback(consoleWriter);
        LoginService loginService = serverManager.getLoginService();
        loginService.addCallback(cb);
        LoginCredentials credentials = getLoginCredentials(server, user, pwd, isHash);
        loginService.login(credentials);
        cb.waitUntilDone();
        cb.checkSuccess();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.