public void run() {
progressDialog.startDialog("Downloading your AWS Credentials", "", 0, 0, null, null);
}
});
S3Object encryptedCredentialsObject = null;
try {
S3Service s3Service = new RestS3Service(null);
encryptedCredentialsObject = s3Service.getObject(
new S3Bucket(bucketName[0]), credentialObjectKey[0]);
} catch (S3ServiceException e) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
progressDialog.stopDialog();
}
});
String errorMessage = "<html><center>Unable to find your AWS Credentials in S3"
+ "<br><br>Please check your passphrase and password</center></html>";
log.error(errorMessage, e);
ErrorDialog.showDialog(myself, hyperlinkListener, errorMessage, null);
return;
}
SwingUtilities.invokeLater(new Runnable() {
public void run() {
progressDialog.updateDialog("Decrypting your AWS Credentials", null, 0);
}
});
try {
myself.awsCredentials = AWSCredentials.load(password,
new BufferedInputStream(encryptedCredentialsObject.getDataInputStream()));
SwingUtilities.invokeLater(new Runnable() {
public void run() {
progressDialog.stopDialog();
}