C# Class Amazon.S3.Util.S3PostUploadSignedPolicy

Show file Open project: aws/aws-sdk-net

Public Methods

Method Description
GetReadablePolicy ( ) : string

Get the policy document as a human readable string.

GetSignedPolicy ( string policy, AWSCredentials credentials ) : S3PostUploadSignedPolicy

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.

GetSignedPolicyFromJson ( string policyJson ) : S3PostUploadSignedPolicy

Create an instance of this class from a JSON string.

GetSignedPolicyFromXml ( string policyXml ) : S3PostUploadSignedPolicy

Create an instance of this class from an XML string.

GetSignedPolicyV4 ( string policy, AWSCredentials credentials, RegionEndpoint region ) : S3PostUploadSignedPolicy

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.

ToJson ( ) : string

JSON representation of this object

ToXml ( ) : string

XML Representation of this object

Private Methods

Method Description
addConditionsToPolicy ( string policy, string>.Dictionary newConditions ) : byte[]
addTokenToPolicy ( string policy, string token ) : byte[]

Method Details

GetReadablePolicy() public method

Get the policy document as a human readable string.
public GetReadablePolicy ( ) : string
return string

GetSignedPolicy() public static method

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.
public static GetSignedPolicy ( string policy, AWSCredentials credentials ) : S3PostUploadSignedPolicy
policy string JSON string representing the policy to sign
credentials Amazon.Runtime.AWSCredentials Credentials to sign the policy with
return S3PostUploadSignedPolicy

GetSignedPolicyFromJson() public static method

Create an instance of this class from a JSON string.
public static GetSignedPolicyFromJson ( string policyJson ) : S3PostUploadSignedPolicy
policyJson string JSON string
return S3PostUploadSignedPolicy

GetSignedPolicyFromXml() public static method

Create an instance of this class from an XML string.
public static GetSignedPolicyFromXml ( string policyXml ) : S3PostUploadSignedPolicy
policyXml string XML string generated by ToXml()
return S3PostUploadSignedPolicy

GetSignedPolicyV4() public static method

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.
public static GetSignedPolicyV4 ( string policy, AWSCredentials credentials, RegionEndpoint region ) : S3PostUploadSignedPolicy
policy string JSON string representing the policy to sign
credentials Amazon.Runtime.AWSCredentials Credentials to sign the policy with
region RegionEndpoint Service region endpoint.
return S3PostUploadSignedPolicy

ToJson() public method

JSON representation of this object
public ToJson ( ) : string
return string

ToXml() public method

XML Representation of this object
public ToXml ( ) : string
return string