SharedAccessBlobHeaders Class

  • java.lang.Object

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:

preserveRawValue - Whether the sdk should preserve the raw value of these headers.

SharedAccessBlobHeaders

public SharedAccessBlobHeaders(SharedAccessHeaders other)

Initializes a new instance of the SharedAccessBlobHeaders class based on an existing instance.

Parameters:

other - A SharedAccessHeaders object which specifies the set of properties to clone.

Applies to