private void getStorageUnitDownloadCredentialResponse(MockCloseableHttpResponse response, URI uri) throws UnsupportedCharsetException, JAXBException { StorageUnitDownloadCredential storageUnitDownloadCredential = new StorageUnitDownloadCredential(); AwsCredential awsCredential = new AwsCredential(); awsCredential.setAwsAccessKey(uri.toString()); storageUnitDownloadCredential.setAwsCredential(awsCredential); response.setEntity(getHttpEntity(storageUnitDownloadCredential)); } }
private void getBusinessObjectDataUploadCredentialResponse(MockCloseableHttpResponse response, URI uri) throws UnsupportedCharsetException, JAXBException { BusinessObjectDataUploadCredential businessObjectDataUploadCredential = new BusinessObjectDataUploadCredential(); AwsCredential awsCredential = new AwsCredential(); awsCredential.setAwsAccessKey(uri.toString()); businessObjectDataUploadCredential.setAwsCredential(awsCredential); response.setEntity(getHttpEntity(businessObjectDataUploadCredential)); }
awsCredential.setAwsAccessKey(credentials.getAccessKeyId()); awsCredential.setAwsSecretKey(credentials.getSecretAccessKey()); awsCredential.setAwsSessionToken(credentials.getSessionToken());
awsCredential.setAwsAccessKey(credentials.getAccessKeyId()); awsCredential.setAwsSecretKey(credentials.getSecretAccessKey()); awsCredential.setAwsSessionToken(credentials.getSessionToken());
sourceAwsAccessKey = this.getAwsAccessKey(); String copyAwsAccessKey = ((String) strategy.copy(LocatorUtils.property(locator, "awsAccessKey", sourceAwsAccessKey), sourceAwsAccessKey, (this.awsAccessKey!= null))); copy.setAwsAccessKey(copyAwsAccessKey); } else { if (awsAccessKeyShouldBeCopiedAndSet == Boolean.FALSE) {
sourceAwsAccessKey = this.getAwsAccessKey(); String copyAwsAccessKey = ((String) strategy.copy(LocatorUtils.property(locator, "awsAccessKey", sourceAwsAccessKey), sourceAwsAccessKey, (this.awsAccessKey!= null))); copy.setAwsAccessKey(copyAwsAccessKey); } else { if (awsAccessKeyShouldBeCopiedAndSet == Boolean.FALSE) {
sourceAwsAccessKey = this.getAwsAccessKey(); String copyAwsAccessKey = ((String) strategy.copy(LocatorUtils.property(locator, "awsAccessKey", sourceAwsAccessKey), sourceAwsAccessKey, (this.awsAccessKey!= null))); copy.setAwsAccessKey(copyAwsAccessKey); } else { if (awsAccessKeyShouldBeCopiedAndSet == Boolean.FALSE) {