Examples of Credentials


Examples of org.apache.uima.ducc.common.authentication.BrokerCredentials.Credentials

          if ( brokerCredentialsFile != null && brokerCredentialsFile.length() > 0 ) {
            String path ="";
            try {
                Utils.findDuccHome()// add DUCC_HOME to System.properties
                path = Utils.resolvePlaceholderIfExists(brokerCredentialsFile, System.getProperties());
                Credentials credentials = BrokerCredentials.get(path);
              if ( credentials.getUsername() != null && credentials.getPassword() != null ) {
              duccAMQComponent.setUserName(credentials.getUsername());
              duccAMQComponent.setPassword(credentials.getPassword());
               }  
            } catch(FileNotFoundException e) {
            System.out.println("DuccAdmin Failed - File Not Found:"+path+" Broker Credentials File:"+brokerCredentialsFile);
            System.exit(-1);
            }
View Full Code Here

Examples of org.apache.zookeeper.server.jersey.cfg.Credentials

       jersey.setServletInstance(new ServletContainer());
       jersey.addInitParameter("com.sun.jersey.config.property.packages",
               "org.apache.zookeeper.server.jersey.resources");
       jersey.setContextPath(e.getContext());

       Credentials c = Credentials.join(e.getCredentials(), cfg
               .getCredentials());
       if (!c.isEmpty()) {
           jersey.addFilter(new HTTPBasicAuth(c), e.getContext()
                   + "-basic-auth", null);
       }

       return jersey;
View Full Code Here

Examples of org.cloudfoundry.test.haash.model.Credentials

                return new ResponseEntity<Object>(wrapCredentials(existing.getCredentials()), HttpStatus.OK);
            } else {
                return new ResponseEntity<Object>("{}", HttpStatus.CONFLICT);
            }
        } else {
            Credentials credentials = new Credentials();
            credentials.setId(UUID.randomUUID().toString());
            credentials.setUri("http://" + myUri() + "/HaaSh/" + instanceId);
            credentials.setUsername("warreng");
            credentials.setPassword("natedogg");
            serviceBinding.setCredentials(credentials);
            serviceBindingRepository.save(serviceBinding);
            return new ResponseEntity<Object>(wrapCredentials(credentials), HttpStatus.CREATED);
        }
    }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.utils.Credentials

   *
   * @param username the username
   * @param password the password
   */
  public void setCredentials(String username, String password) {
    setCredentials(new Credentials(username, password));
  }
View Full Code Here

Examples of org.exoplatform.web.security.Credentials

   {
      if (ExoContainer.getProfiles().contains("cluster"))
      {
         HttpServletRequest httpRequest = (HttpServletRequest)request;

         Credentials credentials  = (Credentials)httpRequest.getSession().getAttribute(PortalLoginModule.AUTHENTICATED_CREDENTIALS);

         // Make programatic login if authenticated credentials are present in session - they were set in another cluster node
         if (credentials != null && httpRequest.getRemoteUser() == null)
         {
            WebAuthentication pwl = new WebAuthentication();
            pwl.login(credentials.getUsername(), credentials.getPassword());

         }

         chain.doFilter(request, response);
View Full Code Here

Examples of org.gatein.wci.security.Credentials

     login(credentials, request, response, validityMillis, null);
  }

  public void login(Credentials credentials, HttpServletRequest request, HttpServletResponse response, long validityMillis, String initialURI) throws IOException
  {
     String ticket = TICKET_SERVICE.createTicket(new Credentials(credentials.getUsername(), credentials.getPassword()), validityMillis);

     request.getSession().removeAttribute(Credentials.CREDENTIALS);

     if (initialURI == null) {
        initialURI = request.getRequestURI();
View Full Code Here

Examples of org.glyptodon.guacamole.net.auth.Credentials

                    }

                } // end Authorization header fallback
               
                // Build credentials object
                Credentials credentials = new Credentials();
                credentials.setSession(httpSession);
                credentials.setRequest(request);
                credentials.setUsername(username);
                credentials.setPassword(password);

                SessionListenerCollection listeners = new SessionListenerCollection(httpSession);

                // If no cached context, attempt to get new context
                if (context == null) {

                    context = authProvider.getUserContext(credentials);

                    // Log successful authentication
                    if (context != null && logger.isInfoEnabled())
                        logger.info("User \"{}\" successfully authenticated from {}.",
                                context.self().getUsername(), getLoggableAddress(request));
                   
                }

                // Otherwise, update existing context
                else
                    context = authProvider.updateUserContext(context, credentials);

                // If auth failed, notify listeners
                if (context == null) {

                    if (logger.isWarnEnabled()) {

                        // Only bother logging failures involving usernames
                        if (credentials.getUsername() != null)
                            logger.info("Authentication attempt from {} for user \"{}\" failed.",
                                    getLoggableAddress(request), credentials.getUsername());
                        else
                            logger.debug("Authentication attempt from {} without username failed.",
                                    getLoggableAddress(request));
                    }
View Full Code Here

Examples of org.hpswift.service.Credentials

        if (accessKey == null || secretKey == null || tenantId == null || authUri == null) {
            System.out.println("**" + accessKey +  secretKey + tenantId + authUri);

            throw new IllegalArgumentException("OpenStack Swift must specify all of: secretKey, accessKey, tentantId, authUri");
        }
        Credentials hpCredentials = new Credentials(accessKey, secretKey, tenantId, authUri);
        return hpCredentials;
    }
View Full Code Here

Examples of org.jasig.cas.authentication.principal.Credentials

        if (log.isDebugEnabled()) {
            log.debug("Obtaining credentials...");
            log.debug(getRequest().getEntityAsForm().toString());
        }
    
        final Credentials c = obtainCredentials();
        try {
            final String ticketGrantingTicketId = this.centralAuthenticationService.createTicketGrantingTicket(c);
            getResponse().setStatus(determineStatus());
            final Reference ticket_ref = getRequest().getResourceRef().addSegment(ticketGrantingTicketId);
            getResponse().setLocationRef(ticket_ref);
View Full Code Here

Examples of org.jboss.seam.security.Credentials

    Contexts.getSessionContext().set("org.jboss.seam.security.identity",
        this);
  }

  public Credentials getCredentials() {
    return new Credentials() {
         public String getUsername()
         {
            return "mockedUser";
         }
    };
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.