Examples of signRequest()


Examples of org.ejbca.core.model.ca.caadmin.CA.signRequest()

        String caname = "" + caid;
        CAData signedbydata = CAData.findByIdOrThrow(entityManager, Integer.valueOf(caid));
        try {
            caname = signedbydata.getName();
            CA signedbyCA = signedbydata.getCA();
            returnval = signedbyCA.signRequest(request, usepreviouskey, createlinkcert);
            String msg = intres.getLocalizedMessage("caadmin.certreqsigned", caname);
            logSession.log(admin, caid, LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_INFO_SIGNEDREQUEST, msg);
        } catch (Exception e) {
            String msg = intres.getLocalizedMessage("caadmin.errorcertreqsign", caname);
            logSession.log(admin, caid, LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_SIGNEDREQUEST, msg, e);
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

               
                SignatureRequest signatureRequest = new SignatureRequest(
                    SignatureRequest.SIGNATURE_TYPE_PUT, objects[i].getKey());
                signatureRequest.setBucketName(s3BucketName);
                signatureRequest.setObjectMetadata(objects[i].getMetadataMap());
                signatureRequest.signRequest(signedPutUrl);
               
                gatekeeperMessage.addSignatureRequest(signatureRequest);               
            }
                       
            return gatekeeperMessage;
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

                      } else if (SignatureRequest.SIGNATURE_TYPE_ACL_LOOKUP.equals(signatureRequest.getSignatureType())) {
                          signedUrl = urlSigner.signGetAcl(gatekeeperMessage, clientInformation, signatureRequest);                       
                      } else if (SignatureRequest.SIGNATURE_TYPE_ACL_UPDATE.equals(signatureRequest.getSignatureType())) {
                          signedUrl = urlSigner.signPutAcl(gatekeeperMessage, clientInformation, signatureRequest);                       
                      }
                      signatureRequest.signRequest(signedUrl);
                  }                
              }
            }
                       
            // Build response as a set of properties, and return this document.
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

                      } else if (SignatureRequest.SIGNATURE_TYPE_ACL_LOOKUP.equals(signatureRequest.getSignatureType())) {
                          signedUrl = urlSigner.signGetAcl(gatekeeperMessage, clientInformation, signatureRequest);                       
                      } else if (SignatureRequest.SIGNATURE_TYPE_ACL_UPDATE.equals(signatureRequest.getSignatureType())) {
                          signedUrl = urlSigner.signPutAcl(gatekeeperMessage, clientInformation, signatureRequest);                       
                      }
                      signatureRequest.signRequest(signedUrl);
                  }                
              }
            }
                       
            // Build response as a set of properties, and return this document.
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

               
                SignatureRequest signatureRequest = new SignatureRequest(
                    SignatureRequest.SIGNATURE_TYPE_PUT, objects[i].getKey());
                signatureRequest.setBucketName(s3BucketName);
                signatureRequest.setObjectMetadata(objects[i].getMetadataMap());
                signatureRequest.signRequest(signedPutUrl);
               
                gatekeeperMessage.addSignatureRequest(signatureRequest);               
            }
                       
            return gatekeeperMessage;
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

               
                SignatureRequest signatureRequest = new SignatureRequest(
                    SignatureRequest.SIGNATURE_TYPE_PUT, objects[i].getKey());
                signatureRequest.setBucketName(s3BucketName);
                signatureRequest.setObjectMetadata(objects[i].getMetadataMap());
                signatureRequest.signRequest(signedPutUrl);
               
                gatekeeperMessage.addSignatureRequest(signatureRequest);               
            }
                       
            return gatekeeperMessage;
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

                        } else if (SignatureRequest.SIGNATURE_TYPE_ACL_LOOKUP.equals(signatureRequest.getSignatureType())) {
                            signedUrl = urlSigner.signGetAcl(gatekeeperMessage, clientInformation, signatureRequest);
                        } else if (SignatureRequest.SIGNATURE_TYPE_ACL_UPDATE.equals(signatureRequest.getSignatureType())) {
                            signedUrl = urlSigner.signPutAcl(gatekeeperMessage, clientInformation, signatureRequest);
                        }
                        signatureRequest.signRequest(signedUrl);
                    }
                }
            }

            // Build response as a set of properties, and return this document.
View Full Code Here

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest.signRequest()

                SignatureRequest signatureRequest = new SignatureRequest(
                    SignatureRequest.SIGNATURE_TYPE_PUT, objects[i].getKey());
                signatureRequest.setBucketName(s3BucketName);
                signatureRequest.setObjectMetadata(objects[i].getMetadataMap());
                signatureRequest.signRequest(signedPutUrl);

                gatekeeperMessage.addSignatureRequest(signatureRequest);
            }

            return gatekeeperMessage;
View Full Code Here

Examples of org.scribe.oauth.OAuthService.signRequest()

        // TODO: Store this token if authorization succeeds
        Token accessToken = service.getAccessToken(storedToken, verifier);

        OAuthRequest authRequest = new OAuthRequest(Verb.GET, "https://api.twitter.com/1.1/account/verify_credentials.json");
        service.signRequest(accessToken, authRequest);
        Response authResponse = authRequest.send();

        if (!authResponse.isSuccessful()) {
            LOGGER.warn("OAuth handshake completed, but Twitter credential verification failed: " + authResponse.getMessage());
            httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN);
View Full Code Here

Examples of org.scribe.oauth.OAuthService.signRequest()

       
       
        String url = getProtectedResourceUrlFromSession();
        OAuthRequest request = new OAuthRequest(Verb.GET,url);
        // sign the request
        service.signRequest(accessToken,request);
        Response response = request.send();
        String json = response.getBody();
        SocialUser socialUser = getSocialUserFromJson(json,authProvider);
        return socialUser;
    }
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.