Class S3V4Helpers
Implements helpers methods for Amazon S3
Inheritance
System.Object
S3V4Helpers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.IO.FileSystem.S3.V4.S3V4Sign
Assembly: NFX.Web.dll
Syntax
public static class S3V4Helpers
Fields
DATESTRING_FORMAT
Declaration
public const string DATESTRING_FORMAT = "yyyyMMdd"
Field Value
Type | Description |
---|---|
System.String |
ISO8601_DATESTRING_FORMAT
Declaration
public const string ISO8601_DATESTRING_FORMAT = "yyyyMMddTHHmmssZ"
Field Value
Type | Description |
---|---|
System.String |
Methods
GetS3AbsoolutePath(Uri)
Returns absolute path of S3 Uri
Declaration
public static string GetS3AbsoolutePath(this Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri |
Returns
Type | Description |
---|---|
System.String |
S3Bytes(String)
Converts string into UTF8 byte array encoded representation
Declaration
public static byte[] S3Bytes(this string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str |
Returns
Type | Description |
---|---|
System.Byte[] |
S3DateString(DateTime)
Converts DateTime into appropriate S3 date string representation
Declaration
public static string S3DateString(this DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date |
Returns
Type | Description |
---|---|
System.String |
S3DateTimeString(DateTime)
Converts DateTime into appropriate S3 datetime string representation
Declaration
public static string S3DateTimeString(this DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date |
Returns
Type | Description |
---|---|
System.String |
ToHexString(Byte[], Boolean)
Converts byte array into appropriate string hexadecimal representation
Declaration
public static string ToHexString(this byte[] bytes, bool lowerCase = true)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | |
System.Boolean | lowerCase |
Returns
Type | Description |
---|---|
System.String |