Codota Logo
SharedAccessAccountPolicy.setPermissions
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.microsoft.azure.storage.SharedAccessAccountPolicy.setPermissions (Showing top 10 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: Azure/azure-storage-android

/**
 * Sets shared access permissions using the specified permissions <code>String</code>.
 * 
 * @param value
 *        A <code>String</code> which represents the shared access permissions.
 **/
public void setPermissionsFromString(final String value) {
  this.setPermissions(SharedAccessAccountPermissions.permissionsFromString(value));
}

origin: com.microsoft.azure/azure-storage

/**
 * Sets shared access permissions using the specified permissions <code>String</code>.
 * 
 * @param value
 *        A <code>String</code> which represents the shared access permissions.
 **/
public void setPermissionsFromString(final String value) {
  this.setPermissions(SharedAccessAccountPermissions.permissionsFromString(value));
}
 
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.setPermissions(permissions);
policy.setResourceTypes(resourceTypes);
policy.setRange(ipRange);
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
origin: Azure/azure-storage-android

accountPolicy.setPermissions(EnumSet.of(SharedAccessAccountPermissions.READ, SharedAccessAccountPermissions.WRITE));
accountPolicy.setServices(EnumSet.of(SharedAccessAccountService.BLOB));
accountPolicy.setResourceTypes(EnumSet.of(SharedAccessAccountResourceType.OBJECT, SharedAccessAccountResourceType.CONTAINER));
com.microsoft.azure.storageSharedAccessAccountPolicysetPermissions

Javadoc

Sets the permissions for a shared access signature associated with this shared access policy.

Popular methods of SharedAccessAccountPolicy

  • 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.
  • resourceTypesToString
    Converts this shared access policy's resource types to a String.
  • permissionsToString,
  • resourceTypesToString,
  • servicesToString,
  • setSharedAccessExpiryTime,
  • setProtocols,
  • setRange

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • orElseThrow (Optional)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
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