public class SamplesUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AWS_ACCESS_KEY_PROPERTY_NAME |
static String |
AWS_SECRET_KEY_PROPERTY_NAME |
static String |
GS_ACCESS_KEY_PROPERTY_NAME |
static String |
GS_SECRET_KEY_PROPERTY_NAME |
static String |
SAMPLES_PROPERTIES_NAME |
Constructor and Description |
---|
SamplesUtils() |
Modifier and Type | Method and Description |
---|---|
static AWSCredentials |
loadAWSCredentials()
Loads AWS Credentials from the file samples.properties
(
SAMPLES_PROPERTIES_NAME ) that must be available in the
classpath, and must contain settings awsAccessKey and
awsSecretKey. |
static GSCredentials |
loadGSCredentials()
Loads Google Storage Credentials from the file samples.properties
(
SAMPLES_PROPERTIES_NAME ) that must be available in the
classpath, and must contain settings gsAccessKey and
gsSecretKey. |
public static final String SAMPLES_PROPERTIES_NAME
public static final String AWS_ACCESS_KEY_PROPERTY_NAME
public static final String AWS_SECRET_KEY_PROPERTY_NAME
public static final String GS_ACCESS_KEY_PROPERTY_NAME
public static final String GS_SECRET_KEY_PROPERTY_NAME
public static AWSCredentials loadAWSCredentials() throws IOException
SAMPLES_PROPERTIES_NAME
) that must be available in the
classpath, and must contain settings awsAccessKey and
awsSecretKey.IOException
public static GSCredentials loadGSCredentials() throws IOException
SAMPLES_PROPERTIES_NAME
) that must be available in the
classpath, and must contain settings gsAccessKey and
gsSecretKey.IOException
Copyright © 2006–2018. All rights reserved.