Method | Description | |
---|---|---|
Base64 ( ) : string |
Compute base64 encoded form of JSON policy.
|
|
GetFormData ( ) : string>.Dictionary |
Get the populated dictionary of policy data.
|
|
IsBucketSet ( ) : bool |
Verify if bucket is set in policy.
|
|
IsExpirationSet ( ) : bool |
Verify if expiration is set in policy.
|
|
IsKeySet ( ) : bool |
Verify if key is set in policy.
|
|
SetAlgorithm ( string algorithm ) : void |
Set signature algorithm policy.
|
|
SetBucket ( string bucket ) : void |
Set bucket policy.
|
|
SetCredential ( string credential ) : void |
Set credential policy.
|
|
SetDate ( System.DateTime date ) : void |
Set date policy.
|
|
SetExpires ( System.DateTime expiration ) : void |
Set expiration policy.
|
|
SetKey ( string key ) : void |
Set key policy.
|
|
SetKeyStartsWith ( string keyStartsWith ) : void |
Set key prefix policy.
|
|
SetPolicy ( string policyBase64 ) : void |
Set base64 encoded policy to form dictionary.
|
|
SetSignature ( string signature ) : void |
Set computed signature for the policy to form dictionary.
|
|
SetcontentType ( string contentType ) : void |
Set content type policy.
|
Method | Description | |
---|---|---|
marshalJSON ( ) : byte[] |
Serialize policy into JSON string.
|
public SetAlgorithm ( string algorithm ) : void | ||
algorithm | string | Set signature algorithm used for the policy |
return | void |
public SetCredential ( string credential ) : void | ||
credential | string | Set credential string for the policy |
return | void |
public SetDate ( System.DateTime date ) : void | ||
date | System.DateTime | Set date for the policy |
return | void |
public SetExpires ( System.DateTime expiration ) : void | ||
expiration | System.DateTime | Expiration time for the policy |
return | void |
public SetKeyStartsWith ( string keyStartsWith ) : void | ||
keyStartsWith | string | |
return | void |
public SetPolicy ( string policyBase64 ) : void | ||
policyBase64 | string | |
return | void |
public SetSignature ( string signature ) : void | ||
signature | string | Computed signature |
return | void |
public SetcontentType ( string contentType ) : void | ||
contentType | string | |
return | void |