Lines Matching refs:jsonKey
70 public function __construct($jsonKey, $scope = null) argument
72 if (is_string($jsonKey)) {
73 if (!file_exists($jsonKey)) {
76 $jsonKeyStream = file_get_contents($jsonKey);
77 if (!$jsonKey = json_decode((string) $jsonKeyStream, true)) {
81 if (!array_key_exists('client_email', $jsonKey)) {
86 if (!array_key_exists('private_key', $jsonKey)) {
91 if (array_key_exists('quota_project_id', $jsonKey)) {
92 $this->quotaProject = (string) $jsonKey['quota_project_id'];
95 'issuer' => $jsonKey['client_email'],
96 'sub' => $jsonKey['client_email'],
98 'signingKey' => $jsonKey['private_key'],
102 $this->projectId = isset($jsonKey['project_id'])
103 ? $jsonKey['project_id']