decode_policy ( $response )

Decode a policy that was returned from the service.

Access

public static

Parameters

Parameter

Type

Required

Description

$response

string

Required

The policy returned by AWS that you want to decode into an object.

Returns

Type

Description

string

The Base64-encoded, signed JSON string.

Source

Method defined in utilities/policy.class.php | Toggle source view (4 lines) | View on GitHub

public static function decode_policy($response)
{
    return json_decode(urldecode($response), true);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback