C# Class Minio.PostPolicy

Exibir arquivo Open project: minio/minio-dotnet Class Usage Examples

Public Methods

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.

Private Methods

Method Description
marshalJSON ( ) : byte[]

Serialize policy into JSON string.

Method Details

Base64() public method

Compute base64 encoded form of JSON policy.
public Base64 ( ) : string
return string

GetFormData() public method

Get the populated dictionary of policy data.
public GetFormData ( ) : string>.Dictionary
return string>.Dictionary

IsBucketSet() public method

Verify if bucket is set in policy.
public IsBucketSet ( ) : bool
return bool

IsExpirationSet() public method

Verify if expiration is set in policy.
public IsExpirationSet ( ) : bool
return bool

IsKeySet() public method

Verify if key is set in policy.
public IsKeySet ( ) : bool
return bool

SetAlgorithm() public method

Set signature algorithm policy.
public SetAlgorithm ( string algorithm ) : void
algorithm string Set signature algorithm used for the policy
return void

SetBucket() public method

Set bucket policy.
public SetBucket ( string bucket ) : void
bucket string
return void

SetCredential() public method

Set credential policy.
public SetCredential ( string credential ) : void
credential string Set credential string for the policy
return void

SetDate() public method

Set date policy.
public SetDate ( System.DateTime date ) : void
date System.DateTime Set date for the policy
return void

SetExpires() public method

Set expiration policy.
public SetExpires ( System.DateTime expiration ) : void
expiration System.DateTime Expiration time for the policy
return void

SetKey() public method

Set key policy.
public SetKey ( string key ) : void
key string
return void

SetKeyStartsWith() public method

Set key prefix policy.
public SetKeyStartsWith ( string keyStartsWith ) : void
keyStartsWith string
return void

SetPolicy() public method

Set base64 encoded policy to form dictionary.
public SetPolicy ( string policyBase64 ) : void
policyBase64 string
return void

SetSignature() public method

Set computed signature for the policy to form dictionary.
public SetSignature ( string signature ) : void
signature string Computed signature
return void

SetcontentType() public method

Set content type policy.
public SetcontentType ( string contentType ) : void
contentType string
return void