Examples of authenticate()


Examples of br.com.procempa.modus.services.ModusLoginService.authenticate()

    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);   
   
    LoginService ls = new ModusLoginService();
    assertTrue(ls.authenticate("1", charPassword, null));
  }

}
View Full Code Here

Examples of br.jus.tjrn.arq.security.jaxws.handler.authenticator.CredentialAuthenticator.authenticate()

        test();
    }

    private static void test() {
        CredentialAuthenticator auth = ac.getBean(CredentialAuthenticator.class);
        auth.authenticate("user1", "senha1");
    }
}
View Full Code Here

Examples of ca.eandb.jdcp.remote.AuthenticationService.authenticate()

  public JobService getJobService() {
    if (service == null) {
      try {
        Registry registry = LocateRegistry.getRegistry(host, JdcpUtil.DEFAULT_PORT);
        AuthenticationService auth = (AuthenticationService) registry.lookup("AuthenticationService");
        service = auth.authenticate(username, password, JdcpUtil.PROTOCOL_VERSION_ID);
      } catch (NotBoundException e) {
        System.err.println("Job service not found at remote host.");
        System.exit(1);
      } catch (RemoteException e) {
        System.err.println("Could not connect to job service.");
View Full Code Here

Examples of com.adito.security.AuthenticationModule.authenticate()

        }

        if (logonStateMachine.getState() == LogonStateAndCache.STATE_KNOWN_USERNAME_NO_SCHEME_SPOOF_PASSWORD_ENTRY) {
            scheme.addCredentials(new PasswordCredentials("", "".toCharArray()));
        } else if (logonStateMachine.getState() == LogonStateAndCache.STATE_UNKNOWN_USERNAME_PROMPT_FOR_PASSWORD) {
            Credentials creds = module.authenticate(request, params);
            if(creds!=null)
              scheme.addCredentials(creds);
        } else {
          Credentials creds = module.authenticate(request, params);
            if(creds!=null) {
View Full Code Here

Examples of com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.authenticate()


    public static void impersonateUserAndSetClientFactory(String canonicalName, String domainName, ServiceClientFactory serviceClientFactory,ResourceManager resourceManager)
            throws UMException {
        AuthenticationManagerServiceClient authClient = new AuthenticationManagerServiceClient(serviceClientFactory);
        AuthResult authResultAdmin = authClient
                .authenticate(resourceManager.getPropValue(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME), resourceManager.getPropValue(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD).getBytes());
        Context context = new Context();
        context.initPrincipal(authResultAdmin);
        AuthResult authResult = authClient.getAuthResultOnBehalfOfUser(
                canonicalName, domainName, context);
View Full Code Here

Examples of com.aerospike.client.command.AdminCommand.authenticate()

    conn = new Connection(address, timeoutMillis, cluster.maxSocketIdle);
   
    if (cluster.user != null) {
      try {
        AdminCommand command = new AdminCommand();
        command.authenticate(conn, cluster.user, cluster.password);
      }
      catch (AerospikeException ae) {
        // Socket not authenticated.  Do not put back into pool.
        conn.close();
        throw ae;
View Full Code Here

Examples of com.bookstore.service.workflow.CustomerActivity.authenticate()

  public List<OrderRepresentation> getOrders(
      @QueryParam("username") String username,
      @QueryParam("password") String password) {
    OrderActivity orderActivity = new OrderActivity();
    CustomerActivity customerActivity = new CustomerActivity();
    String customerId = customerActivity.authenticate(username, password);
    return orderActivity.getOrders(customerId);
  }
 
  @GET
  @Produces({MediaType.APPLICATION_JSON})
View Full Code Here

Examples of com.box.boxjavalibv2.BoxClient.authenticate()

                LOG.debug("Using OAuth {}", cachedBoxClient);
                // authorize App for user, and create OAuth token with refresh token
                final IAuthFlowUI authFlowUI = new LoginAuthFlowUI(configuration, boxClient);
                final CountDownLatch latch = new CountDownLatch(1);
                final LoginAuthFlowListener listener = new LoginAuthFlowListener(latch);
                boxClient.authenticate(authFlowUI, true, listener);

                // wait for login to finish or timeout
                if (!latch.await(configuration.getLoginTimeout(), TimeUnit.SECONDS)) {
                    if (!boxClient.isAuthenticated()) {
                        throw new RuntimeCamelException(String.format("Login timeout for %s", cachedBoxClient));
View Full Code Here

Examples of com.bradmcevoy.http.DigestResource.authenticate()

        DigestResponse resp = digestHelper.calculateResponse(auth, r.getRealm(), request.getMethod());
        if( resp == null ) {
            log.debug("requested digest authentication is invalid or incorrectly formatted");
            return null;
        } else {
            Object o = digestResource.authenticate( resp );
            return o;
        }
    }

    public String getChallenge( Resource resource, Request request ) {
View Full Code Here

Examples of com.bradmcevoy.http.Resource.authenticate()

            if( hostRoot == null ) {
                log.warn( "failed to find root for domain: " + naa.domain );
                return null;
            }

            Object oUser = hostRoot.authenticate( naa.toMilton(), password );
            if( oUser != null ) {
                return new MiltonUser( oUser, naa.toMilton(), naa.domain );
            } else {
                log.debug( "authentication failed: " + user );
                return null;
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.