Class TableAccountSasService


  • public final class TableAccountSasService
    extends Object
    This is a helper class to construct a string representing the services accessible by an Account SAS. Setting a value to true means that any SAS which uses these permissions will grant access to that service. Once all the values are set, this should be serialized with toString() and set as the services field on an TableAccountSasSignatureValues object. It is possible to construct the services string without this class, but the order of the services is particular and this class guarantees correctness.
    • Constructor Detail

      • TableAccountSasService

        public TableAccountSasService()
    • Method Detail

      • hasBlobAccess

        public boolean hasBlobAccess()
        Returns:
        The access status for blob resources.
      • hasFileAccess

        public boolean hasFileAccess()
        Returns:
        The access status for file resources.
      • hasQueueAccess

        public boolean hasQueueAccess()
        Returns:
        The access status for queue resources.
      • setQueueAccess

        public TableAccountSasService setQueueAccess​(boolean queue)
        Sets the access status for queue resources.
        Parameters:
        queue - The access status to set.
        Returns:
        The updated TableAccountSasService object.
      • hasTableAccess

        public boolean hasTableAccess()
        Returns:
        The access status for table resources.
      • setTableAccess

        public TableAccountSasService setTableAccess​(boolean table)
        Sets the access status for table resources.
        Parameters:
        table - The access status to set.
        Returns:
        The updated TableAccountSasService object.
      • toString

        public String toString()
        Converts the given services to a String. Using this method will guarantee the services are in an order accepted by the service. If all services are set to false, an empty string is returned from this method.
        Overrides:
        toString in class Object
        Returns:
        A String which represents the account services.