Examples of AWS4Signer


Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");

        HandlerChainFactory chainFactory = new HandlerChainFactory();
        requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

                    sourceSnapshotId, sourceRegion, destinationRegion);

            requestForPresigning.setEndpoint(endPointSource);
            requestForPresigning.setHttpMethod(HttpMethodName.GET);

            AWS4Signer signer = new AWS4Signer();

            signer.presignRequest(requestForPresigning, awsCredentials, null);

            originalCopySnapshotRequest
                    .setPresignedUrl(generateUrl(requestForPresigning));
            originalCopySnapshotRequest.setDestinationRegion(destinationRegion);
            request.addParameter("DestinationRegion", StringUtils
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");


        HandlerChainFactory chainFactory = new HandlerChainFactory();
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");

        HandlerChainFactory chainFactory = new HandlerChainFactory();
        requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");


        HandlerChainFactory chainFactory = new HandlerChainFactory();
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");

        HandlerChainFactory chainFactory = new HandlerChainFactory();
        requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

    private HalClient getHalClient() {
        if (halClient == null) {
            this.halClient = new HalClient(clientConfiguration == null ? new ClientConfiguration() : clientConfiguration,
                                           endpoint,
                                           awsCredentialsProvider == null ? new DefaultAWSCredentialsProviderChain() : awsCredentialsProvider,
                                           signer == null ? new AWS4Signer() : signer,
                                           resourceCache == null ? ImmediatelyExpiringCache.getInstance() : resourceCache);
        }

        return halClient;
    }
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");

        HandlerChainFactory chainFactory = new HandlerChainFactory();
        requestHandler2s.addAll(chainFactory.newRequestHandlerChain(
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

    URI uri = new URI(baseUrl);
    request.setEndpoint(uri);
    String resourcePath=urlString.substring(baseUrl.length(), urlString.indexOf("?"));
    request.setResourcePath(resourcePath);
   
    AWS4Signer aws4Signer=new AWS4Signer();
    String host = uri.getHost();
    aws4Signer.setServiceName(host);
    aws4Signer.sign(request, awsCredentials);
   
    //set headers for real request
    for (Entry <String, String>entry:request.getHeaders().entrySet()){
      conn.setRequestProperty(entry.getKey(),entry.getValue())
    }
View Full Code Here

Examples of com.amazonaws.auth.AWS4Signer

        exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());

        exceptionUnmarshallers.add(new JsonErrorUnmarshaller());
        setEndpoint("dynamodb.us-east-1.amazonaws.com/");

        signer = new AWS4Signer();

        signer.setServiceName("dynamodb");


        HandlerChainFactory chainFactory = new HandlerChainFactory();
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.