private GatekeeperMessage retrieveGatekeeperResponse(S3Object[] objects) throws Exception { // Check whether Uploader has all necessary credentials from user inputs. boolean s3CredentialsProvided = userInputProperties.getProperty("AwsAccessKey") != null && userInputProperties.getProperty("AwsSecretKey") != null && userInputProperties.getProperty("S3BucketName") != null; GatekeeperMessage gatekeeperMessage = null; if (s3CredentialsProvided) { log.debug("S3 login credentials and bucket name are available, the Uploader " + "will generate its own Gatekeeper response"); gatekeeperMessage = buildGatekeeperResponse(objects); } else { gatekeeperMessage = contactGatewayServer(objects); } return gatekeeperMessage; }
private GatekeeperMessage retrieveGatekeeperResponse(S3Object[] objects) throws Exception { // Check whether Uploader has all necessary credentials from user inputs. boolean s3CredentialsProvided = userInputProperties.getProperty("AwsAccessKey") != null && userInputProperties.getProperty("AwsSecretKey") != null && userInputProperties.getProperty("S3BucketName") != null; GatekeeperMessage gatekeeperMessage = null; if (s3CredentialsProvided) { log.debug("S3 login credentials and bucket name are available, the Uploader " + "will generate its own Gatekeeper response"); gatekeeperMessage = buildGatekeeperResponse(objects); } else { gatekeeperMessage = contactGatewayServer(objects); } return gatekeeperMessage; }