Tabnine Logo
SharedAccessPolicyHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
SharedAccessPolicyHandler
in
com.microsoft.azure.storage

Best Java code snippets using com.microsoft.azure.storage.SharedAccessPolicyHandler (Showing top 10 results out of 315)

origin: com.microsoft.azure/azure-storage

@Override
public TablePermissions postProcessResponse(HttpURLConnection connection, CloudTable table,
    CloudTableClient client, OperationContext context, TablePermissions permissions) throws Exception {
  HashMap<String, SharedAccessTablePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
      this.getConnection().getInputStream(), SharedAccessTablePolicy.class);
  for (final String key : accessIds.keySet()) {
    permissions.getSharedAccessPolicies().put(key, accessIds.get(key));
  }
  return permissions;
}
 
origin: Azure/azure-storage-android

/**
 * RESERVED FOR INTERNAL USE. Gets the HashMap of SharedAccessPolicies from the response.
 * 
 * @param stream
 *            the stream to read from
 * @param cls
 *            the <code>SharedAccessPolicy</code> class type
 * @return the HashMap of SharedAccessPolicies from the response
 * @throws SAXException
 * @throws ParserConfigurationException
 * @throws ParseException
 *             if a date is incorrectly encoded in the stream
 * @throws IOException
 */
public static <T extends SharedAccessPolicy> HashMap<String, T> getAccessIdentifiers(final InputStream stream,
    final Class<T> cls) throws ParserConfigurationException, SAXException, IOException {
  SAXParser saxParser = Utility.getSAXParser();
  SharedAccessPolicyHandler<T> handler = new SharedAccessPolicyHandler<T>(cls);
  saxParser.parse(stream, handler);
  return handler.policies;
}
origin: com.microsoft.azure/azure-storage

/**
 * RESERVED FOR INTERNAL USE. Gets the HashMap of SharedAccessPolicies from the response.
 * 
 * @param stream
 *            the stream to read from
 * @param cls
 *            the <code>SharedAccessPolicy</code> class type
 * @return the HashMap of SharedAccessPolicies from the response
 * @throws SAXException
 * @throws ParserConfigurationException
 * @throws IOException
 */
public static <T extends SharedAccessPolicy> HashMap<String, T> getAccessIdentifiers(final InputStream stream,
    final Class<T> cls) throws ParserConfigurationException, SAXException, IOException {
  SAXParser saxParser = Utility.getSAXParser();
  SharedAccessPolicyHandler<T> handler = new SharedAccessPolicyHandler<T>(cls);
  saxParser.parse(stream, handler);
  return handler.policies;
}
origin: Azure/azure-storage-android

  @Override
  public BlobContainerPermissions postProcessResponse(HttpURLConnection connection,
      CloudBlobContainer container, CloudBlobClient client, OperationContext context,
      BlobContainerPermissions containerAcl) throws Exception {
    HashMap<String, SharedAccessBlobPolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(this
        .getConnection().getInputStream(), SharedAccessBlobPolicy.class);
    for (final String key : accessIds.keySet()) {
      containerAcl.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return containerAcl;
  }
};
origin: Azure/azure-storage-android

  @Override
  public FileSharePermissions postProcessResponse(HttpURLConnection connection,
      CloudFileShare share, CloudFileClient client, OperationContext context,
      FileSharePermissions shareAcl) throws Exception {
    HashMap<String, SharedAccessFilePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
        this.getConnection().getInputStream(), SharedAccessFilePolicy.class);
    for (final String key : accessIds.keySet()) {
      shareAcl.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return shareAcl;
  }
};
origin: Azure/azure-storage-android

  @Override
  public QueuePermissions postProcessResponse(HttpURLConnection connection, CloudQueue queue,
      CloudQueueClient client, OperationContext context, QueuePermissions queuePermissions)
      throws Exception {
    HashMap<String, SharedAccessQueuePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
        this.getConnection().getInputStream(), SharedAccessQueuePolicy.class);
    for (final String key : accessIds.keySet()) {
      queuePermissions.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return queuePermissions;
  }
};
origin: com.microsoft.azure/azure-storage

  @Override
  public FileSharePermissions postProcessResponse(HttpURLConnection connection,
      CloudFileShare share, CloudFileClient client, OperationContext context,
      FileSharePermissions shareAcl) throws Exception {
    HashMap<String, SharedAccessFilePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
        this.getConnection().getInputStream(), SharedAccessFilePolicy.class);
    for (final String key : accessIds.keySet()) {
      shareAcl.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return shareAcl;
  }
};
origin: com.microsoft.azure/azure-storage

  @Override
  public BlobContainerPermissions postProcessResponse(HttpURLConnection connection,
      CloudBlobContainer container, CloudBlobClient client, OperationContext context,
      BlobContainerPermissions containerAcl) throws Exception {
    HashMap<String, SharedAccessBlobPolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(this
        .getConnection().getInputStream(), SharedAccessBlobPolicy.class);
    for (final String key : accessIds.keySet()) {
      containerAcl.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return containerAcl;
  }
};
origin: com.microsoft.azure/azure-storage

  @Override
  public QueuePermissions postProcessResponse(HttpURLConnection connection, CloudQueue queue,
      CloudQueueClient client, OperationContext context, QueuePermissions queuePermissions)
      throws Exception {
    HashMap<String, SharedAccessQueuePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
        this.getConnection().getInputStream(), SharedAccessQueuePolicy.class);
    for (final String key : accessIds.keySet()) {
      queuePermissions.getSharedAccessPolicies().put(key, accessIds.get(key));
    }
    return queuePermissions;
  }
};
origin: Azure/azure-storage-android

@Override
public TablePermissions postProcessResponse(HttpURLConnection connection, CloudTable table,
    CloudTableClient client, OperationContext context, TablePermissions permissions) throws Exception {
  HashMap<String, SharedAccessTablePolicy> accessIds = SharedAccessPolicyHandler.getAccessIdentifiers(
      this.getConnection().getInputStream(), SharedAccessTablePolicy.class);
  for (final String key : accessIds.keySet()) {
    permissions.getSharedAccessPolicies().put(key, accessIds.get(key));
  }
  return permissions;
}

com.microsoft.azure.storageSharedAccessPolicyHandler

Javadoc

RESERVED FOR INTERNAL USE. A class used to deserialize SharedAccessPolicies.

Most used methods

  • <init>
  • getAccessIdentifiers
    RESERVED FOR INTERNAL USE. Gets the HashMap of SharedAccessPolicies from the response.

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFileChooser (javax.swing)
  • JTextField (javax.swing)
  • CodeWhisperer alternatives
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