Examples of AuthenticationService


Examples of org.jdesktop.wonderland.common.login.AuthenticationService

        conn.setRequestProperty("Redirect", "false");

        // if there is an authentication manager for this server, attempt
        // to secure the request
        if (getAuthURL() != null) {
            AuthenticationService as = AuthenticationManager.get(getAuthURL());
            if (as != null) {
                as.secureURLConnection(conn);
            }
        }
       
        MultiPartFormOutputStream up =
                new MultiPartFormOutputStream(conn.getOutputStream(), boundary);
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

            throws LoginFailureException
        {
            fireConnecting(BUNDLE.getString(
                    "Sending authentication details..."));
            try {
                AuthenticationService as =
                        AuthenticationManager.login(getAuthInfo(), username,
                                                    credentials);
                setAuthService(as);
                loginComplete(username, as.getAuthenticationToken());
            } catch (AuthenticationException ae) {
                throw new LoginFailureException(ae);
            }
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

        try {
            // create the uploader
            ModuleUploader mu = new ModuleUploader(serverUrl);

            // get the authentication service (if any)
            AuthenticationService as = getAuthentication();
            if (as != null) {
                mu.setAuthURL(as.getAuthenticationURL());
            }

            // upload the module
            mu.upload(module);
        } catch (IOException ioe) {
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

    }

    protected AuthenticationService getAuthentication()
        throws AuthenticationException, IOException
    {
        AuthenticationService out = null;

        // if the username is not null, set up authentication
        if (username != null && username.length() > 0 &&
                password != null && password.length() > 0)
        {
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

        // tell the server not to redirect us to the login page
        uc.setRequestProperty("Redirect", "false");

        // if there is authentication, make sure to secure the connection
        try {
            AuthenticationService as = getAuthentication();
            if (as != null) {
                as.secureURLConnection(uc);
            }
        } catch (AuthenticationException ae) {
            throw new BuildException("Error requesting restart from " +
                                     restartUrl + ": " + ae.getMessage(), ae);
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

    }

    protected AuthenticationService getAuthentication()
        throws AuthenticationException, IOException
    {
        AuthenticationService out = null;

        // if the username is not null, set up authentication
        if (username != null && username.length() > 0 &&
                password != null && password.length() > 0)
        {
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService

            baseURL = new HttpURL(baseURL, "webdav/content");

            //System.out.println("[WebdavClientPlugin] got base URL " + baseURL);

            // get the authentication service for this session
            AuthenticationService as =
                AuthenticationManager.get(loginInfo.getCredentialManager().getAuthenticationURL());

            // activate the webdav repository for this session
            String authCookieName = as.getCookieName();
            String authCookieValue = as.getAuthenticationToken();
            AuthenticatedWebdavResource wdr =
                    new RootWebdavResource(baseURL,
                                           authCookieName,
                                           authCookieValue);
            WebdavContentCollection root =
View Full Code Here

Examples of org.openxri.xml.AuthenticationService

      this.list = Arrays.asList(new Service[] {
          new Service(),
          new DefaultService(new URI("http://__mydefaultendpoint__")),
          new AuthorityResolutionService(new URI("http://__myauthorityresolver__"), "__myproviderid__", new TrustType(TrustType.TRUST_NONE), SEPUri.APPEND_NONE),
          new ProxyResolutionService(new URI[] { new URI("http://__myproxyserver__"), new URI("https://__mysecureproxyserver__") }, "__myproviderid__", new TrustType(TrustType.TRUST_NONE), Boolean.TRUE, Boolean.TRUE),
          new AuthenticationService(new URI[] { new URI("http://__myauthenticationprovider__"), new URI("https://__mysecureauthenticationprovider__") }, "__myproviderid__", null, true),
          new ContactService(new URI("http://__mycontactprovider__"), "__myproviderid__", false),
          new ForwardingService(new URI("http://__myforwardingprovider__"), "__myproviderid__", false, true),
          new XDIService(new URI("http://__myxdiendpoint__"), "__myproviderid__")
      });
View Full Code Here

Examples of ru.runa.af.service.impl.interfaces.AuthenticationService

        Hashtable<String, String> environment = new Hashtable<String, String>();
        environment.put(Context.INITIAL_CONTEXT_FACTORY, getResources().getInitialCtxFactory());
        environment.put(Context.URL_PKG_PREFIXES, getResources().getUrlPkgPrefixes());
        environment.put(Context.PROVIDER_URL, getResources().getProviderUrl());
        remoteContext = new InitialContext(environment);
        AuthenticationService service = getService(AuthenticationServiceHome.JNDI_NAME, AuthenticationServiceHome.class);
        if (SyncResources.LOGIN_MODE_LOGIN_PASSWORD.equals(getResources().getLoginMode())) {
            subject = service.authenticate(getResources().getLogin(), getResources().getPassword());
        } else {
            GSSManager manager = GSSManager.getInstance();
            GSSCredential clientCred = manager.createCredential(GSSCredential.INITIATE_ONLY);
            GSSName peerName = manager.createName("WFServer", null);
            GSSContext context = manager.createContext(peerName, (Oid) null, clientCred, GSSContext.DEFAULT_LIFETIME);
            context.requestMutualAuth(false);

            byte[] token = new byte[0];
            token = context.initSecContext(token, 0, token.length);
            subject = service.authenticate(token);
        }
    }
View Full Code Here

Examples of ru.runa.af.service.impl.interfaces.AuthenticationService

        Hashtable<String, String> environment = new Hashtable<String, String>();
        environment.put(Context.INITIAL_CONTEXT_FACTORY, getResources().getInitialCtxFactory());
        environment.put(Context.URL_PKG_PREFIXES, getResources().getUrlPkgPrefixes());
        environment.put(Context.PROVIDER_URL, getResources().getProviderUrl());
        remoteContext = new InitialContext(environment);
        AuthenticationService service = getService(AuthenticationServiceHome.JNDI_NAME, AuthenticationServiceHome.class);
        if (SyncResources.LOGIN_MODE_LOGIN_PASSWORD.equals(getResources().getLoginMode())) {
            subject = service.authenticate(getResources().getLogin(), getResources().getPassword());
        } else {
            GSSManager manager = GSSManager.getInstance();
            GSSCredential clientCred = manager.createCredential(GSSCredential.INITIATE_ONLY);
            GSSName peerName = manager.createName("WFServer", null);
            GSSContext context = manager.createContext(peerName, (Oid) null, clientCred, GSSContext.DEFAULT_LIFETIME);
            context.requestMutualAuth(false);

            byte[] token = new byte[0];
            token = context.initSecContext(token, 0, token.length);
            subject = service.authenticate(token);
        }
    }
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.