Examples of BasicAWSCredentials


Examples of com.amazonaws.auth.BasicAWSCredentials

     * Provide the possibility to override this method for an mock implementation
     *
     * @return AmazonS3Client
     */
    AmazonS3 createS3Client() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonS3 client = new AmazonS3Client(credentials);
        return client;
    }
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    List<PutObjectRequest> putObjectRequests = new CopyOnWriteArrayList<PutObjectRequest>();
   
    private boolean nonExistingBucketCreated;
   
    public AmazonS3ClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    String awsSecretAccessKey = p.getProperty("awsSecretAccessKey");
    if(awsAccessKeyId == null || awsSecretAccessKey == null)
      throw new SienaException("Both awsAccessKeyId and awsSecretAccessKey properties must be set");
    prefix = p.getProperty("prefix");
    if(prefix == null) prefix = "";
    sdb = new AmazonSimpleDBClient(new BasicAWSCredentials(awsAccessKeyId, awsSecretAccessKey));
  }
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

  private AmazonEC2Client amazonEC2Client;

  public Worker()
  {
    this.client = new DefaultHttpClient();
    BasicAWSCredentials credentials = new BasicAWSCredentials("", "");
    this.amazonEC2Client = new AmazonEC2Client(credentials);
    amazonEC2Client.setEndpoint("ec2.us-west-2.amazonaws.com");
  }
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    private Map<String, CreateQueueRequest> queues = new LinkedHashMap<String, CreateQueueRequest>();
    private Map<String, ScheduledFuture> inFlight = new LinkedHashMap<String, ScheduledFuture>();
    private ScheduledExecutorService scheduler;

    public AmazonSQSClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    /**
     * Provide the possibility to override this method for an mock implementation
     * @return AmazonSQSClient
     */
    AmazonSQS createClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSQS client = new AmazonSQSClient(credentials);
        if (configuration.getAmazonSQSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSQSEndpoint());
        }
        return client;
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

     * Provide the possibility to override this method for an mock implementation
     *
     * @return AmazonS3Client
     */
    AmazonS3Client createS3Client() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonS3Client client = new AmazonS3Client(credentials);
        if (configuration.getAmazonS3Endpoint() != null) {
            client.setEndpoint(configuration.getAmazonS3Endpoint());
        }
        return client;
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    /**
     * Provide the possibility to override this method for an mock implementation
     * @return AmazonSQSClient
     */
    AmazonSQSClient createClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSQSClient client = new AmazonSQSClient(credentials);
        if (configuration.getAmazonSQSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSQSEndpoint());
        }
        return client;
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

     * Provide the possibility to override this method for an mock implementation
     *
     * @return AmazonSNSClient
     */
    AmazonSNSClient createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNSClient client = new AmazonSNSClient(credentials);
        if (configuration.getAmazonSNSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSNSEndpoint());
        }
        return client;
View Full Code Here

Examples of com.amazonaws.auth.BasicAWSCredentials

    List<PutObjectRequest> putObjectRequests = new ArrayList<PutObjectRequest>();
   
    private boolean nonExistingBucketCreated;
   
    public AmazonS3ClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
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.