Examples of login()


Examples of com.sforce.soap.partner.PartnerConnection.login()

            newBinding.setCallOptions(API_CLIENT_NAME, null);

            logger.info("Logging in as " + bindingConfig.getUsername() + "/" + bindingConfig.getPassword() + " to URL: " + bindingConfig.getAuthEndpoint());
            if (bindingConfig.isManualLogin()) {
                LoginResult loginResult = newBinding.login(bindingConfig.getUsername(), bindingConfig.getPassword());
                // if password has expired, throw an exception
                if (loginResult.getPasswordExpired()) {
                    throw new PasswordExpiredException(Messages.getString("Client.errorExpiredPassword")); //$NON-NLS-1$
                }
                // update session id and service endpoint based on response
View Full Code Here

Examples of com.splunk.Service.login()

  public static Service getLoggedInSplunkService() {
    SplunkConfiguration splunkConf = SplunkConfiguration.create();
    Service splunkService = new Service(splunkConf.getHost(),
        splunkConf.getPort());
    splunkService.login(splunkConf.getUsername(), splunkConf.getPassword());
    return splunkService;
  }

}
View Full Code Here

Examples of com.sun.appserv.security.ProgrammaticLogin.login()

  public void testModifyUnownedAlbum() throws Exception
  {
    logger.info("About to execute test method {}", testMethod.getMethodName());

    ProgrammaticLogin login = new ProgrammaticLogin();
    login.login(TEST_USER_ID, TEST_PASSWORD, "GalleriaRealm", true);
    Album album = new Album(TEST_ALBUM_NAME, TEST_ALBUM_DESCRIPTION);
    Album createdAlbum = albumService.createAlbum(album);

    String newUserId = "User#2";
    User newUser = new User(newUserId, TEST_PASSWORD);
View Full Code Here

Examples of com.sun.identity.authentication.AuthContext.login()

        try {
            debug.message("Trying to make an AuthContext");
            ac = new AuthContext(orgName);
            debug.message("Made an AuthContext");
            ac.login();
            debug.message("Logged in AuthContext");
        } catch (LoginException le) {
            debug.error( "Failed to create AuthContext", le );
            throw new PasswordValidationCallback.PasswordValidationException("Failed to create AuthContext", le);
        }
View Full Code Here

Examples of com.sun.security.auth.module.KeyStoreLoginModule.login()

        Subject s = new Subject();
        Map options = new HashMap();
        options.put(O_TYPE, P11KEYSTORE);
        m.initialize(s, null, null, options);
        try {
            m.login();
            throw new SecurityException("expected exception");
        } catch (LoginException le) {
            // good
            //le.printStackTrace();
            System.out.println("test " + testnum++ + " passed");
View Full Code Here

Examples of com.sun.security.auth.module.Krb5LoginModule.login()

        option.put("storePass", "false");

        Krb5LoginModule login = new Krb5LoginModule();
        login.initialize(subject, null, state, option);
       
        if(login.login()){
            login.commit();
        }
    }
   
    private static void help(){
View Full Code Here

Examples of com.sun.security.auth.module.LdapLoginModule.login()

        LdapLoginModule ldap = new LdapLoginModule();
        Subject subject = new Subject();
        ldap.initialize(subject, null, null, Collections.EMPTY_MAP);

        try {
            ldap.login();
            throw new SecurityException("expected a LoginException");

        } catch (LoginException le) {
            // expected behaviour
            System.out.println("Caught a LoginException, as expected");
View Full Code Here

Examples of com.sun.sgs.client.simple.SimpleClient.login()

       
        // log in
        Properties props = new Properties();
        props.setProperty("host", serverInfo.getHostname());
        props.setProperty("port", Integer.toString(serverInfo.getSgsPort()));
        sc.login(props);

        boolean success = listener.waitForLogin();
        assert success : "Good login failed";
       
        sc.logout(true);
View Full Code Here

Examples of com.uphea.service.UserAuthManager.login()

    }
    User user = userAuthManager.findUser(id, cookieData[1]);
    if (user == null) {
      return null;
    }
    userAuthManager.login(user);
    return new UserSession(user);
  }

  /**
   * Logins user.
View Full Code Here

Examples of com.vmware.vim.binding.vim.SessionManager.login()

         ServiceInstanceContent instanceContent = instance.retrieveContent();
         SessionManager sessionManager =
               vmomiClient.createStub(SessionManager.class,
                     instanceContent.getSessionManager());

         sessionManager.login(name, password, sessionManager.getDefaultLocale());
         sessionManager.logout();
      } finally {
         if (vmomiClient != null) {
            vmomiClient.shutdown();
         }
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.