Class AccessTokenResponse
java.lang.Object
io.github.openpaydev.mpesa.core.models.AccessTokenResponse
Represents the response object received from the M-Pesa OAuth token generation endpoint.
This is an internal model used by the TokenManager to deserialize the authentication response.
-
Method Details
-
builder
-
getAccessToken
The actual OAuth 2.0 access token used for authorizing API requests. -
getExpiresIn
public long getExpiresIn()The duration for which the access token is valid, in seconds. The M-Pesa API typically returns "3599" for a one-hour validity. -
equals
-
hashCode
public int hashCode() -
toString
-