Tabnine Logo
SharedAccessAccountPolicy.setSharedAccessExpiryTime
Code IndexAdd Tabnine to your IDE (free)

How to use
setSharedAccessExpiryTime
method
in
com.microsoft.azure.storage.SharedAccessAccountPolicy

Best Java code snippets using com.microsoft.azure.storage.SharedAccessAccountPolicy.setSharedAccessExpiryTime (Showing top 8 results out of 315)

origin: org.apache.hadoop/hadoop-azure

/**
 * Helper method to generate Access Policy for the Storage Account SAS Key
 * @return SharedAccessAccountPolicy
 */
private SharedAccessAccountPolicy getDefaultAccountAccessPolicy() {
 SharedAccessAccountPolicy ap =
   new SharedAccessAccountPolicy();
 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
 cal.setTime(new Date());
 cal.add(Calendar.HOUR, (int) getSasKeyExpiryPeriod() * HOURS_IN_DAY);
 ap.setSharedAccessExpiryTime(cal.getTime());
 ap.setPermissions(getDefaultAccoutSASKeyPermissions());
 ap.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.CONTAINER,
   SharedAccessAccountResourceType.OBJECT));
 ap.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
 return ap;
}
origin: Azure/azure-storage-android

policy.setRange(ipRange);
policy.setProtocols(protocols);
policy.setSharedAccessExpiryTime(cal.getTime());
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(cal.getTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(cal.getTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(policy.getSharedAccessExpiryTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(policy.getSharedAccessExpiryTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(policy.getSharedAccessExpiryTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
origin: Azure/azure-storage-android

accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
accountPolicy.setSharedAccessExpiryTime(policy.getSharedAccessExpiryTime());
final CloudBlobClient sasClient = TestHelper.createCloudBlobClient(accountPolicy, false);
com.microsoft.azure.storageSharedAccessAccountPolicysetSharedAccessExpiryTime

Popular methods of SharedAccessAccountPolicy

  • setPermissions
    Sets the permissions for a shared access signature associated with this shared access policy.
  • setResourceTypes
    Sets the resource type for a shared access signature associated with this shared access policy.
  • setServices
    Sets the services (blob, file, queue, table) for a shared access signature associated with this shar
  • getPermissions
    Gets the permissions for a shared access signature associated with this shared access policy.
  • getResourceTypes
    Gets the resource type for a shared access signature associated with this shared access policy.
  • <init>
  • getProtocols
    Gets the allowed protocols for a shared access signature associated with this shared access policy.
  • getRange
    Gets the allowed IP addresses for a shared access signature associated with this shared access polic
  • getServices
    Gets the services (blob, file, queue, table) for a shared access signature associated with this shar
  • getSharedAccessExpiryTime
  • getSharedAccessStartTime
  • permissionsToString
    Converts this shared access policy's permissions to a String.
  • getSharedAccessStartTime,
  • permissionsToString,
  • resourceTypesToString,
  • servicesToString,
  • setProtocols,
  • setRange

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Collectors (java.util.stream)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now