Examples of auth()


Examples of com.k42b3.neodym.oauth.Oauth.auth()

    OauthProvider provider = new OauthProvider(requestUrl, authorizationUrl, accessUrl, Configuration.getInstance().getConsumerKey(), Configuration.getInstance().getConsumerSecret());
    Oauth oauth = new Oauth(http, provider);

    if(!Configuration.getInstance().getToken().isEmpty() && !Configuration.getInstance().getTokenSecret().isEmpty())
    {
      oauth.auth(Configuration.getInstance().getToken(), Configuration.getInstance().getTokenSecret());
    }
    else
    {
      throw new Exception("No token set use --auth to obtain a token and token secret");
    }
View Full Code Here

Examples of com.lambdaworks.redis.RedisConnection.auth()

                    return conn;
                }
                try {
                    conn = entry.getClient().connect(codec);
                    if (config.getPassword() != null) {
                        conn.auth(config.getPassword());
                    }
                    if (config.getDatabase() != 0) {
                        conn.select(config.getDatabase());
                    }
View Full Code Here

Examples of com.lambdaworks.redis.pubsub.RedisPubSubConnection.auth()

                    if (conn != null) {
                        return conn;
                    }
                    conn = entry.getClient().connectPubSub(codec);
                    if (config.getPassword() != null) {
                        conn.auth(config.getPassword());
                    }
                    if (config.getDatabase() != 0) {
                        conn.select(config.getDatabase());
                    }
View Full Code Here

Examples of com.lgx8.right.service.IUserCardService.auth()

      result = "验证码错误!";
      out.write(result);
      out.flush();
      return ;
    }
    User authuser = userCardService.auth(new User(username, password));
    if (authuser != null) {
      RunTimeUser rtUser = new RunTimeUser(authuser);
     
      if(rtUser.getUsertype()!=User.USER_TYPE_NORMAL) {
        result = "非会员账号,不能进行兑换";
View Full Code Here

Examples of com.sissi.pipeline.in.auth.AuthCallback.auth()

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Auth auth = protocol.cast(Auth.class);
    AuthCallback callback = this.authCallbacks.get(auth.getMechanism());
    return callback != null ? !callback.auth(auth, context) : !context.write(Failure.INSTANCE_INVALIDMECHANISM).write(Stream.closeGraceFully()).close();
  }
}
View Full Code Here

Examples of com.uip.tatar.APITatar.auth()

    @Test
    public void sendSMSTest() {
        APITatar apiTatar  = APITatarProvider.get();
        try {
            apiTatar.auth(LOGIN, PASSWORD);
            apiTatar.sendSMS("50d308f5dc490ef10e00000d", "test");
        catch (APITatarException ex) {
            Assert.fail(ex.getMessage());
        }
    }
View Full Code Here

Examples of net.schmizz.sshj.SSHClient.auth()

      AgentProxy agentProxy = getAgentProxy();
      if (agentProxy == null) {
        System.err.println("No agentProxy");
        System.exit(0);
      }
      ssh.auth(System.getProperty("user.name"), getAuthMethods(agentProxy));
      final Session session = ssh.startSession();
      try {
        final Command cmd = session.exec("ping -c 1 google.com");
        System.out.println(IOUtils.readFully(cmd.getInputStream()).toString());
        cmd.join(5, TimeUnit.SECONDS);
View Full Code Here

Examples of net.schmizz.sshj.SSHClient.auth()

                    throw new RuntimeIOException("Cannot read key from private key file " + privateKeyFile, e);
                }
                client.authPublickey(username, keys);
            } else if (password != null) {
                PasswordFinder passwordFinder = getPasswordFinder();
                client.auth(username, new AuthPassword(passwordFinder),
                        new AuthKeyboardInteractive(new RegularExpressionPasswordResponseProvider(passwordFinder, interactiveKeyboardAuthPromptRegex)));
            }
            sshClient = client;
            connected();
        } catch (SSHException e) {
View Full Code Here

Examples of org.apache.commons.net.smtp.AuthSMTPClient.auth()

          String e = client.getReplyString();
          throw new EmailException("SMTP server rejected login: " + e);
        }
      }

      if (smtpUser != null && !client.auth(smtpUser, smtpPass)) {
        String e = client.getReplyString();
        throw new EmailException("SMTP server rejected auth: " + e);
      }
    } catch (IOException e) {
      if (client.isConnected()) {
View Full Code Here

Examples of org.apache.sshd.ClientSession.auth()

        SshClient client = SshClient.setUpDefaultClient();
        client.start();

        ClientSession session = client.connect("sshd", "localhost", 8001).await().getSession();
        session.addPasswordIdentity("sshd");
        session.auth().verify();

        Git.init().setDirectory(repo).call();
        Git git = Git.open(repo);
        git.commit().setMessage("First Commit").setCommitter("sshd", "sshd@apache.org").call();
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.