Examples of authenticate()


Examples of com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm.authenticate()

        if ( (_username == null) || (_username.length() == 0) ) {
            String msg = sm.getString("jdbclm.nulluser");
            throw new LoginException(msg);
        }
       
        String[] grpList = jdbcRealm.authenticate(_username, getPasswordChar());

        if (grpList == null) {  // JAAS behavior
            String msg = sm.getString("jdbclm.loginfail", _username);
            throw new LoginException(msg);
        }
View Full Code Here

Examples of com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticate()

        }

        public Subject authenticate(Object credentials) {
            final JMXAuthenticator authenticator = new JMXPluggableAuthenticator(
                    environment);
            final Subject subject = authenticator.authenticate(credentials);
            checkAccessFileEntries(subject);
            return subject;
        }

        private void checkAccessFileEntries(Subject subject) {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.auth.MQAuthenticator.authenticate()

        ac.setClientIP(clientIP);
    }
  }

  try {
      a.authenticate(username, passwd);
  } catch(Exception e)  {
      String errStr
      = rb.getString(rb.W_JMX_CONNECTOR_AUTH_FAILED, csi.getName(), e.toString());
      logger.log(Logger.WARNING, errStr);
      throw new SecurityException(errStr);
View Full Code Here

Examples of com.sun.messaging.ums.provider.openmq.ProviderDestinationService.authenticate()

                    String user = req.getParameter(Constants.USER);
                    String pass = req.getParameter(Constants.PASSWORD);
                    ProviderDestinationService pds = DestinationService.getProviderDestinationService(null);

                    pds.authenticate(user, pass);

                    String flag = req.getParameter(ADMIN_DEBUG);

                    boolean debug = Boolean.valueOf(flag).booleanValue();
View Full Code Here

Examples of com.sun.net.httpserver.Authenticator.authenticate()

        {
            Authenticator auth = _context.getAuthenticator();

            if (auth != null)
            {
                Authenticator.Result authResult = auth.authenticate(jettyHttpExchange);
                if (authResult instanceof Authenticator.Success)
                {
                    HttpPrincipal p = ((Authenticator.Success)authResult).getPrincipal();
                    jettyHttpExchange.setPrincipal(p);
                    invokeHandler(jettyHttpExchange);
View Full Code Here

Examples of com.sun.web.security.RealmAdapter.authenticate()

            sendAuthenticationEvents(false, hreq.getRequestURI(), null);          
            return authenticated;
        }
       
        RealmAdapter ra = new RealmAdapter(realmName);
        authenticated = ra.authenticate(webPrincipal);
        if( authenticated == false ) {
            sendAuthenticationEvents(false, hreq.getRequestURI(), webPrincipal);
            logger.fine("authentication failed for " +  endpointName);
        }
View Full Code Here

Examples of com.sun.xml.wss.RealmAuthenticationAdapter.authenticate()

        }
        try {
            RealmAuthenticationAdapter adapter = RealmAuthenticationAdapter.newInstance(null);
            if (adapter != null) {
                result = adapter.authenticate(getSubject(context), username, passwordDigest, nonce, created, context);
            } else {
                log.log(Level.SEVERE, LogStringsMessages.WSS_0295_PASSWORD_VAL_NOT_CONFIG_USERNAME_VAL());
                throw new XWSSecurityException("Error: No PasswordValidator Configured for UsernameToken Validation");
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.zaranux.os.server.core.Identity.authenticate()

    //response.setContentType("application/download");

    try
    {

      if(!requester.authenticate())
      {
        response.sendError(response.SC_UNAUTHORIZED);
        logger.finest("SC_UNAUTHORIZED");
        return;
      }
View Full Code Here

Examples of com.zeroturnaround.liverebel.api.CommandCenterFactory.authenticate()

    final CommandCenterFactory centerFactory = new CommandCenterFactory().setUrl(centerUrl, centerPort);
    // use authentication token if it is set
    if (token != null && token.trim().length() > 0) {
      log.info("Using authentication token '{}' to connect to LiveRebel Command Center running on {}", token, centerAddress);
      centerFactory.authenticate(token);
    }
    else {
      log.info("Didn't find authentication token from {} file - using userName='{}' and password='{}' to connect to LiveRebel Command Center running on {}",
          LR_CLI_PROPERTIES, userName, password, centerAddress);
      centerFactory.authenticate(userName, password);
View Full Code Here

Examples of de.biehlerjosef.unofficialeasybacklogadapter.rest.EasyBacklog.authenticate()

    // TODO Auto-generated method stub
    EasyBacklog bl = EasyBacklog.getEasyBacklog();
    bl.setBaseUrl("https://easybacklog.com/api/");
    bl.setApiKey("gws1m20n8tatotvx7riq");
    bl.setAccountId(3432);
    bl.authenticate();


    List<Backlog> backlogs = bl.getBacklogs();
    //List<Account> accounts = bl.getAccounts();
    try {
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.