|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * Copyright 2014 Google Inc. |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 | + * use this file except in compliance with the License. You may obtain a copy of |
| 7 | + * the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | + * License for the specific language governing permissions and limitations under |
| 15 | + * the License. |
| 16 | + */ |
| 17 | + |
| 18 | +namespace Google\Service\Drive; |
| 19 | + |
| 20 | +class DecryptionMetadata extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * Chunk size used if content was encrypted with the AES 256 GCM Cipher. |
| 24 | + * Possible values are: - default - small |
| 25 | + * |
| 26 | + * @var string |
| 27 | + */ |
| 28 | + public $aes256GcmChunkSize; |
| 29 | + /** |
| 30 | + * The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata |
| 31 | + * with its DEK (Data Encryption Key); see |
| 32 | + * https://developers.google.com/workspace/cse/reference |
| 33 | + * |
| 34 | + * @var string |
| 35 | + */ |
| 36 | + public $encryptionResourceKeyHash; |
| 37 | + /** |
| 38 | + * The signed JSON Web Token (JWT) which can be used to authorize the |
| 39 | + * requesting user with the Key ACL Service (KACLS). The JWT asserts that the |
| 40 | + * requesting user has at least read permissions on the file. |
| 41 | + * |
| 42 | + * @var string |
| 43 | + */ |
| 44 | + public $jwt; |
| 45 | + /** |
| 46 | + * The ID of the KACLS (Key ACL Service) used to encrypt the file. |
| 47 | + * |
| 48 | + * @var string |
| 49 | + */ |
| 50 | + public $kaclsId; |
| 51 | + /** |
| 52 | + * The name of the KACLS (Key ACL Service) used to encrypt the file. |
| 53 | + * |
| 54 | + * @var string |
| 55 | + */ |
| 56 | + public $kaclsName; |
| 57 | + /** |
| 58 | + * Key format for the unwrapped key. Must be `tinkAesGcmKey`. |
| 59 | + * |
| 60 | + * @var string |
| 61 | + */ |
| 62 | + public $keyFormat; |
| 63 | + /** |
| 64 | + * The URL-safe Base64 encoded wrapped key used to encrypt the contents of the |
| 65 | + * file. |
| 66 | + * |
| 67 | + * @var string |
| 68 | + */ |
| 69 | + public $wrappedKey; |
| 70 | + |
| 71 | + /** |
| 72 | + * Chunk size used if content was encrypted with the AES 256 GCM Cipher. |
| 73 | + * Possible values are: - default - small |
| 74 | + * |
| 75 | + * @param string $aes256GcmChunkSize |
| 76 | + */ |
| 77 | + public function setAes256GcmChunkSize($aes256GcmChunkSize) |
| 78 | + { |
| 79 | + $this->aes256GcmChunkSize = $aes256GcmChunkSize; |
| 80 | + } |
| 81 | + /** |
| 82 | + * @return string |
| 83 | + */ |
| 84 | + public function getAes256GcmChunkSize() |
| 85 | + { |
| 86 | + return $this->aes256GcmChunkSize; |
| 87 | + } |
| 88 | + /** |
| 89 | + * The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata |
| 90 | + * with its DEK (Data Encryption Key); see |
| 91 | + * https://developers.google.com/workspace/cse/reference |
| 92 | + * |
| 93 | + * @param string $encryptionResourceKeyHash |
| 94 | + */ |
| 95 | + public function setEncryptionResourceKeyHash($encryptionResourceKeyHash) |
| 96 | + { |
| 97 | + $this->encryptionResourceKeyHash = $encryptionResourceKeyHash; |
| 98 | + } |
| 99 | + /** |
| 100 | + * @return string |
| 101 | + */ |
| 102 | + public function getEncryptionResourceKeyHash() |
| 103 | + { |
| 104 | + return $this->encryptionResourceKeyHash; |
| 105 | + } |
| 106 | + /** |
| 107 | + * The signed JSON Web Token (JWT) which can be used to authorize the |
| 108 | + * requesting user with the Key ACL Service (KACLS). The JWT asserts that the |
| 109 | + * requesting user has at least read permissions on the file. |
| 110 | + * |
| 111 | + * @param string $jwt |
| 112 | + */ |
| 113 | + public function setJwt($jwt) |
| 114 | + { |
| 115 | + $this->jwt = $jwt; |
| 116 | + } |
| 117 | + /** |
| 118 | + * @return string |
| 119 | + */ |
| 120 | + public function getJwt() |
| 121 | + { |
| 122 | + return $this->jwt; |
| 123 | + } |
| 124 | + /** |
| 125 | + * The ID of the KACLS (Key ACL Service) used to encrypt the file. |
| 126 | + * |
| 127 | + * @param string $kaclsId |
| 128 | + */ |
| 129 | + public function setKaclsId($kaclsId) |
| 130 | + { |
| 131 | + $this->kaclsId = $kaclsId; |
| 132 | + } |
| 133 | + /** |
| 134 | + * @return string |
| 135 | + */ |
| 136 | + public function getKaclsId() |
| 137 | + { |
| 138 | + return $this->kaclsId; |
| 139 | + } |
| 140 | + /** |
| 141 | + * The name of the KACLS (Key ACL Service) used to encrypt the file. |
| 142 | + * |
| 143 | + * @param string $kaclsName |
| 144 | + */ |
| 145 | + public function setKaclsName($kaclsName) |
| 146 | + { |
| 147 | + $this->kaclsName = $kaclsName; |
| 148 | + } |
| 149 | + /** |
| 150 | + * @return string |
| 151 | + */ |
| 152 | + public function getKaclsName() |
| 153 | + { |
| 154 | + return $this->kaclsName; |
| 155 | + } |
| 156 | + /** |
| 157 | + * Key format for the unwrapped key. Must be `tinkAesGcmKey`. |
| 158 | + * |
| 159 | + * @param string $keyFormat |
| 160 | + */ |
| 161 | + public function setKeyFormat($keyFormat) |
| 162 | + { |
| 163 | + $this->keyFormat = $keyFormat; |
| 164 | + } |
| 165 | + /** |
| 166 | + * @return string |
| 167 | + */ |
| 168 | + public function getKeyFormat() |
| 169 | + { |
| 170 | + return $this->keyFormat; |
| 171 | + } |
| 172 | + /** |
| 173 | + * The URL-safe Base64 encoded wrapped key used to encrypt the contents of the |
| 174 | + * file. |
| 175 | + * |
| 176 | + * @param string $wrappedKey |
| 177 | + */ |
| 178 | + public function setWrappedKey($wrappedKey) |
| 179 | + { |
| 180 | + $this->wrappedKey = $wrappedKey; |
| 181 | + } |
| 182 | + /** |
| 183 | + * @return string |
| 184 | + */ |
| 185 | + public function getWrappedKey() |
| 186 | + { |
| 187 | + return $this->wrappedKey; |
| 188 | + } |
| 189 | +} |
| 190 | + |
| 191 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 192 | +class_alias(DecryptionMetadata::class, 'Google_Service_Drive_DecryptionMetadata'); |
0 commit comments