SharedAccessBlobHeaders Class
- java.
lang. Object - SharedAccessHeaders
- com.
microsoft. azure. storage. blob. SharedAccessBlobHeaders
- com.
public class SharedAccessBlobHeaders extends SharedAccessHeaders
Represents the optional headers that can be returned with blobs accessed using SAS.
Constructor Summary
Constructor | Description |
---|---|
SharedAccessBlobHeaders() |
Initializes a new instance of the SharedAccessBlobHeaders class. |
SharedAccessBlobHeaders(boolean preserveRawValue) |
Initializes a new instance of the SharedAccessHeaders class. The empty constructor should be preferred and this option should only be used by customers who are sure they do not want the safety usually afforded by this SDK when constructing a sas. The header values are typically decoded before building the sas token. This can cause problems if the desired value for one of the headers contains something that looks like encoding. Setting this flag to true will ensure that the value of these headers are preserved as set on this object when constructing the sas. Note that these values are preserved by encoding them here so that the decoding which happens at sas construction time returns them to the original values. So if get is called on this object when preserveRawValues was set to true, the value returned will be percent encoded. |
SharedAccessBlobHeaders(SharedAccessHeaders other) |
Initializes a new instance of the SharedAccessBlobHeaders class based on an existing instance. |
Inherited Members
Constructor Details
SharedAccessBlobHeaders
public SharedAccessBlobHeaders()
Initializes a new instance of the SharedAccessBlobHeaders class.
SharedAccessBlobHeaders
public SharedAccessBlobHeaders(boolean preserveRawValue)
Initializes a new instance of the SharedAccessHeaders class. The empty constructor should be preferred and this option should only be used by customers who are sure they do not want the safety usually afforded by this SDK when constructing a sas.
The header values are typically decoded before building the sas token. This can cause problems if the desired value for one of the headers contains something that looks like encoding. Setting this flag to true will ensure that the value of these headers are preserved as set on this object when constructing the sas.
Note that these values are preserved by encoding them here so that the decoding which happens at sas construction time returns them to the original values. So if get is called on this object when preserveRawValues was set to true, the value returned will be percent encoded.
Parameters:
SharedAccessBlobHeaders
public SharedAccessBlobHeaders(SharedAccessHeaders other)
Initializes a new instance of the SharedAccessBlobHeaders class based on an existing instance.
Parameters:
Applies to
Azure SDK for Java