Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ by the [Open Charge Alliance][i1].
- [Utility enums](#utility-enums)
- [Message types `SEND` and `CALLRESULTERROR` in OCPP 2.1](#message-types-send-and-callresulterror-in-ocpp-21)
- [Utility types for OCPP 1.6](#utility-types-for-ocpp-16)
- [OCPP 1.6 Security Whitepaper](#ocpp-16-security-whitepaper)
- [Utility types for OCPP 2.0](#utility-types-for-ocpp-20)
- [Utility types for OCPP 2.1](#utility-types-for-ocpp-21)
- [`ChargingManager` class](#chargingmanager-class)
Expand Down Expand Up @@ -317,6 +318,15 @@ The following types may be used to model value descriptors within
OCPP16.Status // status ("Available", "Reserved", ...)
```

#### OCPP 1.6 Security Whitepaper

This library includes types and schemas from the [OCPP 1.6 Security Whitepaper]
(4th edition) released on Feb 5th, 2026. The paper standardizes additional OCPP
messages that model some of the security enhancements introduced in OCPP 2.0,
backporting these features to OCPP 1.6.

[OCPP 1.6 Security Whitepaper]: https://openchargealliance.org/ocpp-info-whitepapers/ocpp-1-6-security-whitepaper-4th-edition/

#### Utility types for OCPP 2.0

```typescript
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"JSON",
"JSON Schema",
"Open Charge Alliance",
"Charging Station"
"Charging Station",
"Security Whitepaper"
]
}
15 changes: 15 additions & 0 deletions schemas/ocpp16/CertificateSigned.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:CertificateSigned.req",
"type": "object",
"properties": {
"certificateChain": {
"type": "string",
"maxLength": 10000
}
},
"additionalProperties": false,
"required": [
"certificateChain"
]
}
24 changes: 24 additions & 0 deletions schemas/ocpp16/CertificateSignedResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:CertificateSigned.conf",
"definitions": {
"CertificateSignedStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/CertificateSignedStatusEnumType"
}
},
"required": [
"status"
]
}
52 changes: 52 additions & 0 deletions schemas/ocpp16/DeleteCertificate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:DeleteCertificate.req",
"definitions": {
"HashAlgorithmEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"SHA256",
"SHA384",
"SHA512"
]
},
"CertificateHashDataType": {
"type": "object",
"additionalProperties": false,
"properties": {
"hashAlgorithm": {
"$ref": "#/definitions/HashAlgorithmEnumType"
},
"issuerNameHash": {
"type": "string",
"maxLength": 128
},
"issuerKeyHash": {
"type": "string",
"maxLength": 128
},
"serialNumber": {
"type": "string",
"maxLength": 40
}
},
"required": [
"hashAlgorithm",
"issuerNameHash",
"issuerKeyHash",
"serialNumber"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"certificateHashData": {
"$ref": "#/definitions/CertificateHashDataType"
}
},
"required": [
"certificateHashData"
]
}
25 changes: 25 additions & 0 deletions schemas/ocpp16/DeleteCertificateResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:DeleteCertificate.conf",
"definitions": {
"DeleteCertificateStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Failed",
"NotFound"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/DeleteCertificateStatusEnumType"
}
},
"required": [
"status"
]
}
32 changes: 32 additions & 0 deletions schemas/ocpp16/ExtendedTriggerMessage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:ExtendedTriggerMessage.req",
"definitions": {
"MessageTriggerEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"BootNotification",
"LogStatusNotification",
"FirmwareStatusNotification",
"Heartbeat",
"MeterValues",
"SignChargePointCertificate",
"StatusNotification"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"requestedMessage": {
"$ref": "#/definitions/MessageTriggerEnumType"
},
"connectorId": {
"type": "integer"
}
},
"required": [
"requestedMessage"
]
}
25 changes: 25 additions & 0 deletions schemas/ocpp16/ExtendedTriggerMessageResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:ExtendedTriggerMessage.conf",
"definitions": {
"TriggerMessageStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"NotImplemented"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/TriggerMessageStatusEnumType"
}
},
"required": [
"status"
]
}
24 changes: 24 additions & 0 deletions schemas/ocpp16/GetInstalledCertificateIds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:GetInstalledCertificateIds.req",
"definitions": {
"CertificateUseEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"CentralSystemRootCertificate",
"ManufacturerRootCertificate"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"certificateType": {
"$ref": "#/definitions/CertificateUseEnumType"
}
},
"required": [
"certificateType"
]
}
69 changes: 69 additions & 0 deletions schemas/ocpp16/GetInstalledCertificateIdsResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:GetInstalledCertificateIds.conf",
"definitions": {
"GetInstalledCertificateStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"NotFound"
]
},
"HashAlgorithmEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"SHA256",
"SHA384",
"SHA512"
]
},
"CertificateHashDataType": {
"javaType": "CertificateHashData",
"type": "object",
"additionalProperties": false,
"properties": {
"hashAlgorithm": {
"$ref": "#/definitions/HashAlgorithmEnumType"
},
"issuerNameHash": {
"type": "string",
"maxLength": 128
},
"issuerKeyHash": {
"type": "string",
"maxLength": 128
},
"serialNumber": {
"type": "string",
"maxLength": 40
}
},
"required": [
"hashAlgorithm",
"issuerNameHash",
"issuerKeyHash",
"serialNumber"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"certificateHashData": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/CertificateHashDataType"
},
"minItems": 1
},
"status": {
"$ref": "#/definitions/GetInstalledCertificateStatusEnumType"
}
},
"required": [
"status"
]
}
59 changes: 59 additions & 0 deletions schemas/ocpp16/GetLog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:GetLog.req",
"definitions": {
"LogEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"DiagnosticsLog",
"SecurityLog"
]
},
"LogParametersType": {
"type": "object",
"additionalProperties": false,
"properties": {
"remoteLocation": {
"type": "string",
"maxLength": 512
},
"oldestTimestamp": {
"type": "string",
"format": "date-time"
},
"latestTimestamp": {
"type": "string",
"format": "date-time"
}
},
"required": [
"remoteLocation"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"log": {
"$ref": "#/definitions/LogParametersType"
},
"logType": {
"$ref": "#/definitions/LogEnumType"
},
"requestId": {
"type": "integer"
},
"retries": {
"type": "integer"
},
"retryInterval": {
"type": "integer"
}
},
"required": [
"logType",
"requestId",
"log"
]
}
Loading