C# Class Amazon.S3.Util.S3PostUploadSignedPolicy

Afficher le fichier Open project: aws/aws-sdk-net

Méthodes publiques

Méthode 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

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

Method Details

GetReadablePolicy() public méthode

Get the policy document as a human readable string.
public GetReadablePolicy ( ) : string
Résultat string

GetSignedPolicy() public static méthode

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
Résultat S3PostUploadSignedPolicy

GetSignedPolicyFromJson() public static méthode

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

GetSignedPolicyFromXml() public static méthode

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

GetSignedPolicyV4() public static méthode

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.
Résultat S3PostUploadSignedPolicy

ToJson() public méthode

JSON representation of this object
public ToJson ( ) : string
Résultat string

ToXml() public méthode

XML Representation of this object
public ToXml ( ) : string
Résultat string