ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::v2::AuthorizationInterface Class Referenceabstract
Inheritance diagram for ocpp::v2::AuthorizationInterface:
ocpp::v2::MessageHandlerInterface ocpp::v2::Authorization

Public Member Functions

virtual void start_auth_cache_cleanup_thread ()=0
 
virtual AuthorizeResponse authorize_req (const IdToken id_token, const std::optional< CiString< 5500 > > &certificate, const std::optional< std::vector< OCSPRequestData > > &ocsp_request_data)=0
 
virtual void trigger_authorization_cache_cleanup ()=0
 
virtual void update_authorization_cache_size ()=0
 Calculate and update the authorization cache size in the device model. More...
 
virtual bool is_auth_cache_ctrlr_enabled ()=0
 
virtual void authorization_cache_insert_entry (const std::string &id_token_hash, const IdTokenInfo &id_token_info)=0
 
virtual std::optional< AuthorizationCacheEntryauthorization_cache_get_entry (const std::string &id_token_hash)=0
 
virtual void authorization_cache_delete_entry (const std::string &id_token_hash)=0
 
virtual AuthorizeResponse validate_token (const IdToken id_token, const std::optional< CiString< 5500 > > &certificate, const std::optional< std::vector< OCSPRequestData > > &ocsp_request_data)=0
 Validates provided id_token certificate and ocsp_request_data using CSMS, AuthCache or AuthList. More...
 
- Public Member Functions inherited from ocpp::v2::MessageHandlerInterface
virtual void handle_message (const EnhancedMessage< MessageType > &message)=0
 Handles the given message from the CSMS. This includes dispatching a CALLRESULT as a response to the incoming message . More...
 

Member Function Documentation

◆ update_authorization_cache_size()

virtual void ocpp::v2::AuthorizationInterface::update_authorization_cache_size ( )
pure virtual

Calculate and update the authorization cache size in the device model.

Implemented in ocpp::v2::Authorization.

◆ validate_token()

virtual AuthorizeResponse ocpp::v2::AuthorizationInterface::validate_token ( const IdToken  id_token,
const std::optional< CiString< 5500 > > &  certificate,
const std::optional< std::vector< OCSPRequestData > > &  ocsp_request_data 
)
pure virtual

Validates provided id_token certificate and ocsp_request_data using CSMS, AuthCache or AuthList.

Parameters
id_token
certificate
ocsp_request_data
Returns
AuthorizeResponse containing the result of the validation

Implemented in ocpp::v2::Authorization.


The documentation for this class was generated from the following file: