public class SamplesUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AWS_ACCESS_KEY_PROPERTY_NAME |
static java.lang.String |
AWS_SECRET_KEY_PROPERTY_NAME |
static java.lang.String |
GS_ACCESS_KEY_PROPERTY_NAME |
static java.lang.String |
GS_SECRET_KEY_PROPERTY_NAME |
static java.lang.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 java.lang.String SAMPLES_PROPERTIES_NAME
public static final java.lang.String AWS_ACCESS_KEY_PROPERTY_NAME
public static final java.lang.String AWS_SECRET_KEY_PROPERTY_NAME
public static final java.lang.String GS_ACCESS_KEY_PROPERTY_NAME
public static final java.lang.String GS_SECRET_KEY_PROPERTY_NAME
public static AWSCredentials loadAWSCredentials() throws java.io.IOException
SAMPLES_PROPERTIES_NAME
) that must be available in the
classpath, and must contain settings awsAccessKey and
awsSecretKey.java.io.IOException
public static GSCredentials loadGSCredentials() throws java.io.IOException
SAMPLES_PROPERTIES_NAME
) that must be available in the
classpath, and must contain settings gsAccessKey and
gsSecretKey.java.io.IOException