Examples of Authentication


Examples of com.jeecms.core.entity.Authentication

    Pagination page = findByCriteria(crit, pageNo, pageSize);
    return page;
  }

  public Authentication findById(String id) {
    Authentication entity = get(id);
    return entity;
  }
View Full Code Here

Examples of com.jelastic.model.Authentication

        }
        if (!isWar()) {
            getLog().info("Skiping publish artifact. Artifact packaging not WAR or EAR");
            return;
        }
        Authentication authentication = authentication();
        if (authentication.getResult() == 0) {
            getLog().info("------------------------------------------------------------------------");
            getLog().info("   Authentication : SUCCESS");
            getLog().info("          Session : " + authentication.getSession());
            //getLog().info("              Uid : " + authentication.getUid());
            getLog().info("------------------------------------------------------------------------");
            UpLoader upLoader = upload(authentication);
            if (upLoader.getResult() == 0) {
                getLog().info("      File UpLoad : SUCCESS");
                getLog().info("         File URL : " + upLoader.getFile());
                getLog().info("        File size : " + upLoader.getSize());
                getLog().info("------------------------------------------------------------------------");
                CreateObject createObject = createObject(upLoader,authentication);
                if (createObject.getResult() == 0) {
                    getLog().info("File registration : SUCCESS");
                    getLog().info("  Registration ID : " + createObject.getResponse().getObject().getId());
                    getLog().info("     Developer ID : " + createObject.getResponse().getObject().getDeveloper());
                    getLog().info("------------------------------------------------------------------------");
                    if (System.getProperty("jelastic-session") == null) {
                        LogOut logOut = logOut(authentication);
                        if (logOut.getResult() == 0){
                            getLog().info("           LogOut : SUCCESS");
                        } else {
                            getLog().info("LogOut : FAILED");
                            getLog().error("Error : " + logOut.getError());
                            throw new MojoExecutionException(logOut.getError());
                        }
                    }
                }
            } else {
                getLog().error("File upload : FAILED");
                getLog().error("      Error : " + upLoader.getError());
                throw new MojoExecutionException(upLoader.getError());
            }
        } else {
            getLog().error("Authentication : FAILED");
            getLog().error("         Error : " + authentication.getError());
            throw new MojoExecutionException(authentication.getError());
        }

    }
View Full Code Here

Examples of com.khs.sherpa.json.service.Authentication

 
  protected Object processAuthenication() throws SherpaRuntimeException {
    String userid = request.getParameter("userid");
    String password = request.getParameter("password");
    try {
      Authentication authentication = new Authentication(applicationContext);
      SessionToken token = authentication.authenticate(userid, password, request, response);
     
      boolean hasAdminRole = applicationContext.getManagedBean(SessionTokenService.class)
        .hasRole(token.getUserid(), token.getToken(), (String) applicationContext.getAttribute(ApplicationContext.SETTINGS_ADMIN_USER));
     
      // load the sherpa admin user
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.Authentication

   
    return requiredParametersSet;
  }

  private static Authentication createGerritAuthentication(String authKey, String userName, String authKeyPassword) {
    return new Authentication(new File(authKey), userName, authKeyPassword);
  }
View Full Code Here

Examples of com.sonymobile.tools.gerrit.gerritevents.ssh.Authentication

        return true;
    }

    @Override
    public Authentication getGerritAuthentication() {
        return new Authentication(getGerritAuthKeyFile(), getGerritUserName(),
                getGerritAuthKeyFilePassword());
    }
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.Authentication

    BlockingQueue<String> queue = new LinkedBlockingQueue<String>(10000);
    StatusesFilterEndpoint endpoint = new StatusesFilterEndpoint();
    // add some track terms
    endpoint.trackTerms(Lists.newArrayList("twitterapi", "#yolo"));

    Authentication auth = new OAuth1(consumerKey, consumerSecret, token, secret);
    // Authentication auth = new BasicAuth(username, password);

    // Create a new BasicClient. By default gzip is enabled.
    Client client = new ClientBuilder()
            .hosts(Constants.STREAM_HOST)
View Full Code Here

Examples of com.woorea.openstack.keystone.model.Authentication

    }
   
    public class Builder {
     
      public Authenticate withUsernamePassword(String username, String password) {
        Authentication authentication = new UsernamePassword(username, password);
        return new Authenticate(authentication);
      }
View Full Code Here

Examples of com.woorea.openstack.keystone.v3.model.Authentication

   * @param args
   */
  public static void main(String[] args) {
    Keystone keystone = new Keystone(ExamplesConfiguration.KEYSTONE_AUTH_URL);
   
    Authentication auth = new Authentication();
    auth.setIdentity(Identity.password(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD));
   
    OpenStackResponse response = keystone.tokens().authenticate(auth).request();
   
    String tokenId = response.header("X-Subject-Token");
   
View Full Code Here

Examples of mungbean.Authentication

        for (IPersistentMap authentication : authentications) {
            String database = get(authentication, "database");
            String user = get(authentication, "user");
            String password = get(authentication, "password");
            if (database != null) {
                auths.add(new Authentication(database, user, password));
            }
        }
        Settings settings = new Settings();
        // TODO make settings configurable from clojure
        executor = new SingleNodeDbOperationExecutor(settings, new Server(host, port, auths.toArray(new Authentication[auths.size()])));
View Full Code Here

Examples of org.acegisecurity.Authentication

*/
public class AcegiWorkflowContextHandlerInterceptorDifferentProviderTests extends AbstractWorkflowContextHandlerInterceptorTests {


  protected MockHttpServletRequest getMockRequest(String userName) {
    Authentication auth = new AnonymousAuthenticationToken(userName, userName, new GrantedAuthority[]{ new GrantedAuthorityImpl(userName) });
    SecurityContext context = new SecurityContextImpl();
    context.setAuthentication(auth);
    SecurityContextHolder.setContext(context);

    return new MockHttpServletRequest();
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.