Examples of authorize()


Examples of ca.uhn.hl7v2.hoh.api.IAuthorizationServerCallback.authorize()

      Charset charset = decoder.getCharset();
      myWriter.setCharsetForNextMessage(charset);
     
      IAuthorizationServerCallback authorizationCallback = myProtocol.getAuthorizationServerCallback();
      if (authorizationCallback != null) {
        boolean auth = authorizationCallback.authorize(decoder.getPath(), decoder.getUsername(), decoder.getPassword());
        if (!auth) {
          HTTPUtils.write401Unauthorized(myWriter.getOutputStream());
          throw new LLPException("Authorization at URI[" + decoder.getPath() + "] failed for user[" + decoder.getUsername() + "]");
        }
      }
View Full Code Here

Examples of com.dyuproject.oauth.Token.authorize()

                    response.sendRedirect(urlBuffer.toString());
                }
                break;
               
            case Token.UNAUTHORIZED:
                if(token.authorize(request.getParameter(Constants.OAUTH_TOKEN),
                        request.getParameter(Constants.OAUTH_VERIFIER)))
                {
                    if(fetchAccessToken(token, request, response))
                        queryLocalContacts(token, request, response);
                    else
View Full Code Here

Examples of com.dyuproject.oauth.Token.authorize()

                    response.sendRedirect(urlBuffer.toString());
                }
                break;
               
            case Token.UNAUTHORIZED:
                if(token.authorize(request.getParameter(Constants.OAUTH_TOKEN),
                        request.getParameter(Constants.OAUTH_VERIFIER)))
                {
                    if(fetchAccessToken(token, request, response))
                        queryGoogleContacts(token, request, response);
                    else
View Full Code Here

Examples of com.google.appengine.tools.admin.OAuth2Native.authorize()

        String oauth2ClientId = null;
        String oauth2ClientSecret = null;
        String oauth2RefreshToken = null;
        OAuth2Native client = new OAuth2Native(useCookies, oauth2ClientId,
            oauth2ClientSecret, oauth2RefreshToken);
        Credential credential = client.authorize();

        if (credential == null || credential.getAccessToken() == null) {
            String errMsg = "Tokens expired? " + runOauth2Msg;
            throw new ConfigurationException(errMsg);
        }
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.Permissions.authorize()

  }

  public void testGetPermissions() throws RepositoryException {
    Permissions perms = new Permissions(fd.get_Permissions());
    assertNotNull(perms);
    boolean authorized = perms.authorize(MockUtil.createAdministratorUser());
    assertTrue("User is not authorized", authorized);
  }

  public void testMarkingPermissions() throws RepositoryException {
    IVersionSeries versionSeries =
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper.authorize()

      try {
        sharepointClientContext.setSiteURL(webapp);
        BulkAuthorizationHelper bulkAuth =
            new BulkAuthorizationHelper(sharepointClientContext);
        authDataPacketArray = bulkAuth.authorize(authDataPacketArray, userName);
      } catch (final Exception e) {
        LOGGER.log(Level.WARNING, "WS call failed for GSBulkAuthorization using webapp [ "
            + webapp + " ] ", e);
        continue;
      }
View Full Code Here

Examples of com.google.gsa.AuthorizationProcessImpl.authorize()

                            }

                            try {
                                String repoID = repository.getId();
                                statusCode =
                                        authZProcess.authorize(request, response,
                                                               authCookies,
                                                               url, repoID);
                                //If statusCode is UNAUTHORIZED, then the process has to stop here
                                if (statusCode ==
                                    HttpServletResponse.SC_UNAUTHORIZED) {
View Full Code Here

Examples of com.mobius.model.LoggedUser.authorize()

        }
        if(name.startsWith("[direct]")) {
            name = name.substring(8);
        }
        LoggedUser user = new LoggedUser(name,password);
        if (user.authorize()) {
            List<GrantedAuthority> grantedAuths = new ArrayList<GrantedAuthority>();
            grantedAuths.add(new SimpleGrantedAuthority("ROLE_USER"));
            Authentication auth = new MyAuthenticationToken(name, password, grantedAuths,user);
            return auth;
        } else {
View Full Code Here

Examples of com.sun.ejb.Container.authorize()

            // Result can be null for some error cases.  This will be
            // handled by jaxrpc runtime so we don't treat it as an exception.
            if( inv.method != null ) {
                inv.setWebServiceMethod(inv.method);
              
                if ( !container.authorize(inv) ) {
                    inv.exception = new Exception
                        ("Client not authorized for invocation of "
                         + inv.method);
                }
            } else {
View Full Code Here

Examples of com.tuscanyscatours.payment.creditcard.CreditCardPayment.authorize()

        PayerType ccOwner = objectFactory.createPayerType();
        ccOwner.setName("Fred");
        ccDetails.setCardOwner(ccOwner);

        try {
            System.out.println(cc.authorize(ccDetails, 100.00f));
        } catch (AuthorizeFault_Exception e) {
            System.err.println("Fault: " + e.getFaultInfo().getErrorCode());
        }
    }
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.