use of com.microsoft.azure.storage.StorageCredentialsAnonymous in project camel by apache.
the class BlobServiceComponent method checkCredentials.
private void checkCredentials(BlobServiceConfiguration cfg) {
CloudBlob client = cfg.getAzureBlobClient();
StorageCredentials creds = client == null ? cfg.getCredentials() : client.getServiceClient().getCredentials();
if ((creds == null || creds instanceof StorageCredentialsAnonymous) && !cfg.isPublicForRead()) {
throw new IllegalArgumentException("Credentials must be specified.");
}
}
Aggregations