Skip to main content

Module credentials

Module credentials 

Source
Available on crate feature v2_3_0 only.
Expand description

The Credentials module of OCPI 2.3.0: the registration handshake.

Module Identifier: credentials — required for all implementations.

This module is symmetric: every platform both calls it and answers it. The token exchange it performs — CREDENTIALS_TOKEN_A out of band, B in the POST, C in the response — is modelled as a typestate in Registration, which makes the classic mistakes (using TOKEN_A after registration, POSTing twice) unrepresentable.

Spec: 2.3.0 §credentials_credentials_endpoint

Structs§

Credentials
The credentials one platform gives another.
CredentialsBuilder
Use builder syntax to set the inputs and finish with build().
CredentialsRole
One role a platform provides, with the party that fills it.
CredentialsRoleBuilder
Use builder syntax to set the inputs and finish with build().