Examples of username()


Examples of javax.jms.JMSPasswordCredential.userName()

            }

            // Check for JMSPasswordCredential annotation
            if (injectionPoint.getAnnotated().isAnnotationPresent(JMSPasswordCredential.class)) {
                JMSPasswordCredential credential = injectionPoint.getAnnotated().getAnnotation(JMSPasswordCredential.class);
                userName = propertyReplacer.replaceProperties(credential.userName());
                password = propertyReplacer.replaceProperties(credential.password());
            }

            // Check for JMSSessionMode annotation
            if (injectionPoint.getAnnotated().isAnnotationPresent(JMSSessionMode.class)) {
View Full Code Here

Examples of juzu.plugin.shiro.Login.username()

    boolean remember = request.getParameterArguments().get(loginAnnotation.rememberMe()) != null ? true : false;
    String username = null;
    String password = null;
    try {
      username = request.getParameterArguments().get(loginAnnotation.username()).getValue();
      password = request.getParameterArguments().get(loginAnnotation.password()).getValue();
    } catch (NullPointerException e) {
      List<ControlParameter> parameters = request.getHandler().getParameters();
      for (ControlParameter parameter : parameters) {
        if (parameter instanceof ContextualParameter) {
View Full Code Here

Examples of net.sf.sahi.playback.RequestCredentials.username()

      logger.info("realm=" + realm + "; getRequestingScheme()=" + scheme);
     
      RequestCredentials credentials = session.getMatchingCredentials(realm, scheme);
      if (credentials != null){
        logger.info("Using credentials supplied: " + credentials);
        return new PasswordAuthentication(credentials.username(),
            credentials.password().toCharArray());
      }
      logger.fine("No credentials found. Should get prompt on browser.");
    }
    return null;
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.username()

        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
            httpClientBuilder.password(password);
        }
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.username()

        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
            httpClientBuilder.password(password);
        }
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.username()

        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
            httpClientBuilder.password(password);
        }
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.username()

   
    try {
      final Builder builder = new StdHttpClient.Builder().url(url);
     
      if (username != null && !username.isEmpty()) {
        builder.username(username);
      }
     
      if (password != null && !password.isEmpty()) {
        builder.password(password);
      }
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.username()

        final String password = config.getPassword();
        final String database = config.getDatabase();
       
        final Builder builder = new StdHttpClient.Builder().url(url);
        if (username != null && !username.isEmpty()) {
          builder.username(username);
        }
       
        if (password != null && !password.isEmpty()) {
          builder.password(password);
        }
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNECT.userName()

    public void testConnectWithCredentialsBackToBack() throws Exception {

        CONNECT connect = new CONNECT();
        connect.cleanSession(false);
        connect.clientId(new UTF8Buffer("test"));
        connect.userName(new UTF8Buffer("user"));
        connect.password(new UTF8Buffer("pass"));

        DataByteArrayOutputStream output = new DataByteArrayOutputStream();
        wireFormat.marshal(connect.encode(), output);
        wireFormat.marshal(connect.encode(), output);
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNECT.userName()

        for (MQTTFrame frame : frames) {
            connect = new CONNECT().decode(frame);
            LOG.info("Unmarshalled: {}", connect);
            assertFalse(connect.cleanSession());
            assertEquals("user", connect.userName().toString());
            assertEquals("pass", connect.password().toString());
            assertEquals("test", connect.clientId().toString());
        }
    }
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.