Package com.amazonaws.auth

Examples of com.amazonaws.auth.BasicAWSCredentials


    protected ListDomainsRequest listDomainsRequest;
    protected PutAttributesRequest putAttributesRequest;
    protected SelectRequest selectRequest;

    public AmazonSDBClientMock() {
        super(new BasicAWSCredentials("user", "secret"));
    }
View Full Code Here


public class AmazonSQSClientMock extends AmazonSQSClient {
   
    List<Message> messages = new ArrayList<Message>();
   
    public AmazonSQSClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

public class AmazonS3ClientMock extends AmazonS3Client {
   
    List<S3Object> objects = new ArrayList<S3Object>();   
   
    public AmazonS3ClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

import com.amazonaws.services.sns.model.UnsubscribeRequest;

public class AmazonSNSClientMock extends AmazonSNSClient {
   
    public AmazonSNSClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

public class AmazonSESClientMock extends AmazonSimpleEmailServiceClient {
    private SendEmailRequest sendEmailRequest;

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

     *
     * @param prop properties to configure @link {@link AmazonS3Client}
     * @return {@link AmazonS3Client}
     */
    public static AmazonS3Client openService(final Properties prop) {
        AWSCredentials credentials = new BasicAWSCredentials(
            prop.getProperty(S3Constants.ACCESS_KEY),
            prop.getProperty(S3Constants.SECRET_KEY));
        int connectionTimeOut = Integer.parseInt(prop.getProperty(S3Constants.S3_CONN_TIMEOUT));
        int socketTimeOut = Integer.parseInt(prop.getProperty(S3Constants.S3_SOCK_TIMEOUT));
        int maxConnections = Integer.parseInt(prop.getProperty(S3Constants.S3_MAX_CONNS));
View Full Code Here

    BatchGetItemRequest batchGetItemRequest;
    ScanRequest scanRequest;
    QueryRequest queryRequest;

    public AmazonDDBClientMock() {
        super(new BasicAWSCredentials("user", "secret"));
    }
View Full Code Here

public class AmazonSNSClientMock extends AmazonSNSClient {
   
    private static final String DEFAULT_TOPIC_ARN = "arn:aws:sns:us-east-1:541925086079:MyTopic";
   
    public AmazonSNSClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

     * 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);
        if (configuration.getAmazonS3Endpoint() != null) {
            client.setEndpoint(configuration.getAmazonS3Endpoint());
        }
        return client;
View Full Code Here

    List<Message> messages = new ArrayList<Message>();
    Map<String, Map<String, String>> queueAttributes = new HashMap<String, Map<String, String>>();
    List<ChangeMessageVisibilityRequest> changeMessageVisibilityRequests = new CopyOnWriteArrayList<ChangeMessageVisibilityRequest>();
   
    public AmazonSQSClientMock() {
        super(new BasicAWSCredentials("myAccessKey", "mySecretKey"));
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.auth.BasicAWSCredentials

Copyright © 2018 www.massapicom. 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.