Codota Logo
SharedAccessAccountPolicy.setSharedAccessExpiryTime
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now