use of org.jclouds.blobstore.BlobRequestSigner in project dhis2-core by dhis2.
the class JCloudsAppStorageService method getSignedGetContentUri.
public URI getSignedGetContentUri(String key) {
BlobRequestSigner signer = blobStoreContext.getSigner();
if (!requestSigningSupported(signer)) {
return null;
}
HttpRequest httpRequest;
try {
httpRequest = signer.signGetBlob(config.container, key, FIVE_MINUTES_IN_SECONDS);
} catch (UnsupportedOperationException uoe) {
return null;
}
return httpRequest.getEndpoint();
}
Aggregations