The Open Charging Network Notary provides functions in popular programming languages to sign an OCN request and verify an OCN-Signature
header.
- Include the dependency from JCenter using e.g. Gradle/Maven
Gradle:
implementation 'shareandcharge.openchargingnetwork:notary:1.0.0'
Maven:
<dependency>
<groupId>shareandcharge.openchargingnetwork</groupId>
<artifactId>notary</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
Check the JVM readme for further usage information.
Install the package using npm:
npm install @shareandcharge/ocn-notary
Check the JS readme for further usage information.
The seperate libraries are contained in their respective directories. Build scripts should provide
functionality to test, build and publish the individual packages. A top-level Makefile
exists to
coordinate between the different libraries, such that they can be tested, built and published in
single steps within the CD pipeline.