11<?php
2-
3- //namespace PrivacyIdea\PHPClient;
2+ /*
3+ * Copyright 2024 NetKnights GmbH - [email protected] 4+ * <p>
5+ * Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3;
6+ * you may not use this file except in compliance with the License.
7+ *
8+ * Unless required by applicable law or agreed to in writing, software
9+ * distributed under the License is distributed on an "AS IS" BASIS,
10+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+ * See the License for the specific language governing permissions and
12+ * limitations under the License.
13+ */
414
515class PIChallenge
616{
7- /* @var string Type of the token this challenge is for. */
8- public $ type = "" ;
17+ /* @var string Type of token this challenge is for. */
18+ public string $ type = "" ;
919
10- /* @var string Message for this challenge. */
11- public $ message = "" ;
20+ /* @var string Message extracted from this challenge. */
21+ public string $ message = "" ;
1222
13- /* @var string Image data for this challenge. */
14- public $ image = "" ;
23+ /* @var string Image data extracted from this challenge. */
24+ public string $ image = "" ;
1525
1626 /* @var string TransactionId to reference this challenge in later requests. */
17- public $ transactionID = "" ;
27+ public string $ transactionID = "" ;
1828
1929 /* @var string Client mode in which the challenge should be processed. */
20- public $ clientMode = "" ;
30+ public string $ clientMode = "" ;
2131
22- /* @var string Serial of the token this challenge is for. */
23- public $ serial = "" ;
32+ /* @var string Serial of token this challenge is for. */
33+ public string $ serial = "" ;
2434
2535 /* @var string Arbitrary attributes that can be appended to the challenge by the server. */
26- public $ attributes = "" ;
36+ public string $ attributes = "" ;
2737
28- /* @var string JSON format */
29- public $ webAuthnSignRequest = "" ;
38+ /* @var string WebAuthn sign request in JSON format */
39+ public string $ webAuthnSignRequest = "" ;
3040
31- /* @var string JSON format */
32- public $ u2fSignRequest = "" ;
41+ /* @var string U2F sign request in JSON format */
42+ public string $ u2fSignRequest = "" ;
3343}
0 commit comments