Commit | Line | Data |
---|---|---|
d270cc87 | 1 | { |
98fc1389 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
d270cc87 | 3 | "$id": "urn:OCPP:Cp:2:2020:3:AuthorizeRequest", |
98fc1389 | 4 | "$comment": "OCPP 2.0.1 FINAL", |
d270cc87 JB |
5 | "definitions": { |
6 | "CustomDataType": { | |
7 | "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.", | |
8 | "javaType": "CustomData", | |
9 | "type": "object", | |
10 | "properties": { | |
11 | "vendorId": { | |
12 | "type": "string", | |
13 | "maxLength": 255 | |
14 | } | |
15 | }, | |
16 | "required": ["vendorId"] | |
17 | }, | |
18 | "HashAlgorithmEnumType": { | |
19 | "description": "Used algorithms for the hashes provided.\r\n", | |
20 | "javaType": "HashAlgorithmEnum", | |
21 | "type": "string", | |
22 | "additionalProperties": false, | |
23 | "enum": ["SHA256", "SHA384", "SHA512"] | |
24 | }, | |
25 | "IdTokenEnumType": { | |
26 | "description": "Enumeration of possible idToken types.\r\n", | |
27 | "javaType": "IdTokenEnum", | |
28 | "type": "string", | |
29 | "additionalProperties": false, | |
30 | "enum": [ | |
31 | "Central", | |
32 | "eMAID", | |
33 | "ISO14443", | |
34 | "ISO15693", | |
35 | "KeyCode", | |
36 | "Local", | |
37 | "MacAddress", | |
38 | "NoAuthorization" | |
39 | ] | |
40 | }, | |
41 | "AdditionalInfoType": { | |
42 | "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n", | |
43 | "javaType": "AdditionalInfo", | |
44 | "type": "object", | |
45 | "additionalProperties": false, | |
46 | "properties": { | |
47 | "customData": { | |
48 | "$ref": "#/definitions/CustomDataType" | |
49 | }, | |
50 | "additionalIdToken": { | |
51 | "description": "This field specifies the additional IdToken.\r\n", | |
52 | "type": "string", | |
53 | "maxLength": 36 | |
54 | }, | |
55 | "type": { | |
56 | "description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n", | |
57 | "type": "string", | |
58 | "maxLength": 50 | |
59 | } | |
60 | }, | |
61 | "required": ["additionalIdToken", "type"] | |
62 | }, | |
63 | "IdTokenType": { | |
64 | "description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n", | |
65 | "javaType": "IdToken", | |
66 | "type": "object", | |
67 | "additionalProperties": false, | |
68 | "properties": { | |
69 | "customData": { | |
70 | "$ref": "#/definitions/CustomDataType" | |
71 | }, | |
72 | "additionalInfo": { | |
73 | "type": "array", | |
74 | "additionalItems": false, | |
75 | "items": { | |
76 | "$ref": "#/definitions/AdditionalInfoType" | |
77 | }, | |
78 | "minItems": 1 | |
79 | }, | |
80 | "idToken": { | |
81 | "description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n", | |
82 | "type": "string", | |
83 | "maxLength": 36 | |
84 | }, | |
85 | "type": { | |
86 | "$ref": "#/definitions/IdTokenEnumType" | |
87 | } | |
88 | }, | |
89 | "required": ["idToken", "type"] | |
90 | }, | |
91 | "OCSPRequestDataType": { | |
92 | "javaType": "OCSPRequestData", | |
93 | "type": "object", | |
94 | "additionalProperties": false, | |
95 | "properties": { | |
96 | "customData": { | |
97 | "$ref": "#/definitions/CustomDataType" | |
98 | }, | |
99 | "hashAlgorithm": { | |
100 | "$ref": "#/definitions/HashAlgorithmEnumType" | |
101 | }, | |
102 | "issuerNameHash": { | |
103 | "description": "Hashed value of the Issuer DN (Distinguished Name).\r\n\r\n", | |
104 | "type": "string", | |
105 | "maxLength": 128 | |
106 | }, | |
107 | "issuerKeyHash": { | |
108 | "description": "Hashed value of the issuers public key\r\n", | |
109 | "type": "string", | |
110 | "maxLength": 128 | |
111 | }, | |
112 | "serialNumber": { | |
113 | "description": "The serial number of the certificate.\r\n", | |
114 | "type": "string", | |
115 | "maxLength": 40 | |
116 | }, | |
117 | "responderURL": { | |
118 | "description": "This contains the responder URL (Case insensitive). \r\n\r\n", | |
119 | "type": "string", | |
120 | "maxLength": 512 | |
121 | } | |
122 | }, | |
123 | "required": [ | |
124 | "hashAlgorithm", | |
125 | "issuerNameHash", | |
126 | "issuerKeyHash", | |
127 | "serialNumber", | |
128 | "responderURL" | |
129 | ] | |
130 | } | |
131 | }, | |
132 | "type": "object", | |
133 | "additionalProperties": false, | |
134 | "properties": { | |
135 | "customData": { | |
136 | "$ref": "#/definitions/CustomDataType" | |
137 | }, | |
138 | "idToken": { | |
139 | "$ref": "#/definitions/IdTokenType" | |
140 | }, | |
141 | "certificate": { | |
142 | "description": "The X.509 certificated presented by EV and encoded in PEM format.\r\n", | |
143 | "type": "string", | |
144 | "maxLength": 5500 | |
145 | }, | |
146 | "iso15118CertificateHashData": { | |
147 | "type": "array", | |
148 | "additionalItems": false, | |
149 | "items": { | |
150 | "$ref": "#/definitions/OCSPRequestDataType" | |
151 | }, | |
152 | "minItems": 1, | |
153 | "maxItems": 4 | |
154 | } | |
155 | }, | |
156 | "required": ["idToken"] | |
157 | } |