|
olp-cpp-sdk
1.23.1
|
The access key ID and access key secret that you got from the HERE Account as a part of the onboarding or support process on the developer portal. More...
#include <AuthenticationCredentials.h>
Public Member Functions | |
| AuthenticationCredentials (std::string key, std::string secret) | |
Creates the AuthenticationCredentials instance with your access key ID and access key secret. More... | |
| AuthenticationCredentials (std::string key, std::string secret, std::string endpoint_url) | |
Creates the AuthenticationCredentials instance. More... | |
| const std::string & | GetKey () const |
Gets the access key ID from the AuthenticationCredentials instance. More... | |
| const std::string & | GetSecret () const |
Gets the access key secret from the AuthenticationCredentials instance. More... | |
| const std::string & | GetEndpointUrl () const |
Gets the token endpoint URL from the AuthenticationCredentials instance. More... | |
Static Public Member Functions | |
| static boost::optional< AuthenticationCredentials > | ReadFromStream (std::istream &stream) |
| Reads your access credentials from an input stream that is interpreted as a sequence of characters and retrieves a value with your credentials. More... | |
| static boost::optional< AuthenticationCredentials > | ReadFromFile (std::string filename={}) |
| Parses the credentials.properties file downloaded from the HERE platform website and retrieves a value with your credentials. More... | |
The access key ID and access key secret that you got from the HERE Account as a part of the onboarding or support process on the developer portal.
Your credentials can be read in the following 2 ways:
For instructions on how to get the access keys, see the Get Credentials section in the Terms and Permissions User Guide.
| olp::authentication::AuthenticationCredentials::AuthenticationCredentials | ( | std::string | key, |
| std::string | secret | ||
| ) |
Creates the AuthenticationCredentials instance with your access key ID and access key secret.
| key | Your access key ID. |
| secret | Your access key secret. |
| olp::authentication::AuthenticationCredentials::AuthenticationCredentials | ( | std::string | key, |
| std::string | secret, | ||
| std::string | endpoint_url | ||
| ) |
Creates the AuthenticationCredentials instance.
| key | The access key ID. |
| secret | The access key secret. |
| endpoint_url | The token endpoint URL. |
| const std::string& olp::authentication::AuthenticationCredentials::GetEndpointUrl | ( | ) | const |
Gets the token endpoint URL from the AuthenticationCredentials instance.
| const std::string& olp::authentication::AuthenticationCredentials::GetKey | ( | ) | const |
Gets the access key ID from the AuthenticationCredentials instance.
| const std::string& olp::authentication::AuthenticationCredentials::GetSecret | ( | ) | const |
Gets the access key secret from the AuthenticationCredentials instance.
|
static |
Parses the credentials.properties file downloaded from the HERE platform website and retrieves a value with your credentials.
The file must contain the following lines:
For instructions on how to get the credentials.properties file, see the Get Credentials section in the Terms and Permissions User Guide.
| [in] | filename | The path to the file that contains the credentials. An empty path is replaced with the following default path: $HOME/.here/credentials.properties |
|
static |
Reads your access credentials from an input stream that is interpreted as a sequence of characters and retrieves a value with your credentials.
The stream must contain the following sequences of characters:
| [in] | stream | The stream from which the credentials are read. |