|
10Duke Enterprise C++ Client
|
#include <OAuthStateImpl.h>
Implementation of OAuthState.
Public Member Functions | |
| OAuthStateImpl (std::string accessToken, std::string refreshToken, int64_t expiresAt, bool infinite, std::map< std::string, std::string > additionalProperties) | |
| Constructs new instance. | |
| OAuthStateImpl (std::string accessToken, std::string refreshToken, int64_t expiresAt, std::map< std::string, std::string > additionalProperties) | |
| Constructs new instance. | |
| const std::string & | getAccessToken () const override |
| Returns the access token. | |
| const std::string & | getRefreshToken () const override |
| Returns the refresh token. | |
| std::int64_t | getExpiresAt () const override |
| Returns timestamp (as epoch seconds) when the current access token expires. | |
| const std::map< std::string, std::string > & | getAdditionalProperties () const override |
| Returns all additional properties returned by the server. | |
| const std::string * | getAdditionalProperty (const std::string &name) const override |
| Returns additional property returned by the server. | |
| bool | hasAdditionalProperty (const std::string &name) const override |
| Checks if the state has additional property. | |
| bool | hasAccessToken () const override |
Returns true if the state contains an access token. | |
| bool | doesExpire () const override |
Returns true if the access token expires. | |
| bool | isRefreshable () const override |
Returns true if the state is refreshable (i.e. | |
| void | setAccessToken (const std::string &newAccessToken) override |
| Set the access token. | |
| void | setExpiresAt (std::int64_t newExpiresAt) override |
| Set the "expires at". | |
| void | setRefreshToken (const std::string &newRefreshToken) override |
| Set the refresh token. | |
| void | refreshFrom (const OAuthState &state) override |
| Refreshes the state from another state, This is called after refreshing the state with the service. | |
| void | removeAdditionalProperty (const std::string &propertyName) override |
| Removes given additional property. | |
|
inline |
Constructs new instance.
| accessToken | - |
| refreshToken | - |
| expiresAt | - |
| infinite | - |
| additionalProperties | - |
|
inline |
Constructs new instance.
| accessToken | - |
| refreshToken | - |
| expiresAt | - |
| additionalProperties | - |
|
inlineoverridevirtual |
Returns true if the access token expires.
Returns false if the access token does not expire.
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns the access token.
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns all additional properties returned by the server.
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns additional property returned by the server.
| name | property name |
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns timestamp (as epoch seconds) when the current access token expires.
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns the refresh token.
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns true if the state contains an access token.
(Uninitialized states do not contain access token).
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Checks if the state has additional property.
| name | - |
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Returns true if the state is refreshable (i.e.
it contains refresh-token).
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
Refreshes the state from another state, This is called after refreshing the state with the service.
| state | - |
Implements tenduke::oauth::OAuthState.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |