Examples of authenticateUser()


Examples of org.sonatype.security.ldap.realms.LdapManager.authenticateUser()

    // stop the main server
    mainConnector.stop();

    // try again, this time it should hit the cache
    Assert.assertNotNull(ldapManager.authenticateUser("rwalker", "rwalker123"));

    // wait 2 sec cache should still be valid
    Thread.sleep(1000 * 2);
    Assert.assertNotNull(ldapManager.authenticateUser("rwalker", "rwalker123"));

View Full Code Here

Examples of org.sonatype.security.ldap.realms.LdapManager.authenticateUser()

    // try again, this time it should hit the cache
    Assert.assertNotNull(ldapManager.authenticateUser("rwalker", "rwalker123"));

    // wait 2 sec cache should still be valid
    Thread.sleep(1000 * 2);
    Assert.assertNotNull(ldapManager.authenticateUser("rwalker", "rwalker123"));

    // now wait another 2 seconds and cache should be cleared
    Thread.sleep(1000 * 2);
    // server down and cache cleared
    try {
View Full Code Here

Examples of org.sonatype.security.ldap.realms.LdapManager.authenticateUser()

    // now wait another 2 seconds and cache should be cleared
    Thread.sleep(1000 * 2);
    // server down and cache cleared
    try {
      ldapManager.authenticateUser("rwalker", "rwalker123");
      Assert.fail("expected NoSuchLdapUserException");
    }
    catch (AuthenticationException e) {
      // expected
    }
View Full Code Here

Examples of org.teiid.services.TeiidLoginContext.authenticateUser()

    SessionServiceImpl ssi = new SessionServiceImpl() {
      @Override
      protected TeiidLoginContext authenticate(String userName, Credentials credentials, String applicationName, List<String> domains, SecurityHelper helper, boolean passthough)
        throws LoginException {
        impl.authenticateUser(userName, credentials, applicationName, domains, passthough);
        return impl;
      }
    };
 
    ssi.setSecurityDomains("somedomain");
View Full Code Here

Examples of uk.co.thomasc.steamkit.steam3.webapi.WebAPI.authenticateUser()

    final byte[] cryptedLoginKey = CryptoHelper.SymmetricEncrypt(loginKey, sessionKey);

    KeyValue authResult;

    try {
      authResult = userAuth.authenticateUser(String.valueOf(steamClient.getSteamId().convertToLong()), WebHelpers.UrlEncode(cryptedSessionKey), WebHelpers.UrlEncode(cryptedLoginKey), "POST");
    } catch (final Exception e) {
      return false;
    }

    token = authResult.get("token").asString();
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.