Examples of user()


Examples of org.jclouds.domain.LoginCredentials.Builder.user()

      if (loginUser != null) {
         Builder loginBuilder = LoginCredentials.builder();

         int pos = loginUser.indexOf(':');
         if (pos != -1) {
            loginBuilder.user(loginUser.substring(0, pos)).password(loginUser.substring(pos + 1));
         } else
            loginBuilder.user(loginUser);

         if (authenticateSudo != null) {
            loginBuilder.authenticateSudo(authenticateSudo);
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

         int pos = loginUser.indexOf(':');
         if (pos != -1) {
            loginBuilder.user(loginUser.substring(0, pos)).password(loginUser.substring(pos + 1));
         } else
            loginBuilder.user(loginUser);

         if (authenticateSudo != null) {
            loginBuilder.authenticateSudo(authenticateSudo);
         }
         LoginCredentials creds = loginBuilder.build();
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

   public static LoginCredentials overrideDefaultCredentialsWithOptionsIfPresent(
         @Nullable LoginCredentials defaultCreds, RunScriptOptions options) {
      Builder builder = LoginCredentials.builder(defaultCreds);
      if (options.getLoginUser() != null)
         builder.user(options.getLoginUser());
      if (options.getLoginPassword() != null)
         builder.password(options.getLoginPassword());
      if (options.getLoginPrivateKey() != null)
         builder.privateKey(options.getLoginPrivateKey());
      if (options.shouldAuthenticateSudo() != null)
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

      LoginCredentials creds = fromNode;
      LoginCredentials credsFromParameters = credentialsFromImageOrTemplateOptions.apply(template);
      if (credsFromParameters != null) {
         Builder builder = LoginCredentials.builder(creds);
         if (credsFromParameters.getUser() != null)
            builder.user(credsFromParameters.getUser());
         if (credsFromParameters.getPassword() != null)
            builder.password(credsFromParameters.getPassword());
         if (credsFromParameters.getPrivateKey() != null)
            builder.privateKey(credsFromParameters.getPrivateKey());
         if (credsFromParameters.shouldAuthenticateSudo())
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

            owner = org.jclouds.compute.domain.Image.class.cast(resourceToAuthenticate).getUserMetadata().get("owner");
         }
         checkArgument(owner != null, "Resource must be an image (for EC2)");
         // canonical/alestic images use the ubuntu user to login
         if (owner.matches("063491364108|099720109477")) {
            credentials.user("ubuntu");
            // http://typepad.com/2010/09/introducing-amazon-linux-ami.html
         } else if (owner.equals("137112412989")) {
            credentials.user("ec2-user");
         }
      }
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

         // canonical/alestic images use the ubuntu user to login
         if (owner.matches("063491364108|099720109477")) {
            credentials.user("ubuntu");
            // http://typepad.com/2010/09/introducing-amazon-linux-ami.html
         } else if (owner.equals("137112412989")) {
            credentials.user("ec2-user");
         }
      }
      return credentials.build();
   }
}
View Full Code Here

Examples of org.jclouds.domain.LoginCredentials.Builder.user()

      template = TemplateBuilderSpec.parse(spec);
      if (template.getLoginUser() != null) {
        Iterable<String> userPass = Splitter.on(':').split(
            template.getLoginUser());
        Builder loginCredentialsBuilder = LoginCredentials.builder();
        loginCredentialsBuilder.user(Iterables.get(userPass, 0));
        if (Iterables.size(userPass) == 2)
          loginCredentialsBuilder
              .password(Iterables.get(userPass, 1));
        if (template.getAuthenticateSudo() != null)
          loginCredentialsBuilder.authenticateSudo(template
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JmsConnectionCredentials.user()

        }

        @Override
        protected String getCurrentLogin(JmsLocation loc) {
            JmsConnectionCredentials creds = loc.getConnectionCredentials();
            return (creds != null) ? creds.user() : "";
        }

        @Override
        protected String getCurrentPassword(JmsLocation loc) {
            JmsConnectionCredentials creds = loc.getConnectionCredentials();
View Full Code Here

Examples of org.jolokia.client.J4pClientBuilder.user()

    protected J4pClient createJolokiaClient(ManifestContainer container, String jolokiaUrl) {
        String name = container.getName();
        LOG.info("Creating jolokia client for : " + name + " at URL: " + jolokiaUrl);
        J4pClientBuilder builder = J4pClient.url(jolokiaUrl);
        if (Strings.isNotBlank(user)) {
            builder = builder.user(user);
        }
        if (Strings.isNotBlank(password)) {
            builder = builder.password(password);
        }
        return builder.build();
View Full Code Here

Examples of org.jvnet.solaris.libzfs.ACLBuilder.user()

                try {
                    hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson"

                    ACLBuilder acl = new ACLBuilder();
                    acl.user(userName).withEverything();
                    hudson.allow(acl);
                } catch (ZFSException e) {
                    // revert the file system creation
                    try {
                        hudson.destory();
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.