Package com.ringcentral.definitions
Class GetTokenRequest
java.lang.Object
com.ringcentral.definitions.GetTokenRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccess token lifetime in seconds Maximum: 3600 Minimum: 600 Format: int32 Default: 3600For `jwt_bearer` grant type only.Client assertionClient assertion typeOAuth client identifier (if not specified via `Authorization` header)For `authorization_code` grant type only.PKCE code verifierThe unique identifier of a client application instance.For `password` grant type only.Grant type Required Enum: authorization_code, password, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer, urn:ietf:params:oauth:grant-type:device_code, device_certificate, partner_jwt, guest, personal_jwt, otp, ivr_pinFor `ivr_pin` grant type only.For `password` grant type only.For `authorization_code` grant type only.For `refresh_token` grant type only.Refresh token lifetime in seconds Maximum: 604800 Format: int32 Default: 604800List of application permissions to be used with access token.For `password` grant type only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess_token_ttl
(Long access_token_ttl) account_id
(String account_id) client_assertion
(String client_assertion) client_assertion_type
(String client_assertion_type) code_verifier
(String code_verifier) device_code
(String device_code) endpoint_id
(String endpoint_id) grant_type
(String grant_type) partner_account_id
(String partner_account_id) redirect_uri
(String redirect_uri) refresh_token
(String refresh_token) refresh_token_ttl
(Long refresh_token_ttl)
-
Field Details
-
username
For `password` grant type only. User login name: email or phone number in E.164 format -
password
For `password` grant type only. User's password Format: password -
extension
For `password` grant type only. Optional. Extension short number. If company number is specified as a username, and extension is not specified, the server will attempt to authenticate client as main company administratorDEPRECATED: use extension number embedded into username string like `+16501234567*101`
-
grant_type
Grant type Required Enum: authorization_code, password, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer, urn:ietf:params:oauth:grant-type:device_code, device_certificate, partner_jwt, guest, personal_jwt, otp, ivr_pin -
code
For `authorization_code` grant type only. User's authorization code -
redirect_uri
For `authorization_code` grant type only. This is a callback URI which determines where the response is sent. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration Format: uri -
access_token_ttl
Access token lifetime in seconds Maximum: 3600 Minimum: 600 Format: int32 Default: 3600 -
refresh_token_ttl
Refresh token lifetime in seconds Maximum: 604800 Format: int32 Default: 604800 -
scope
List of application permissions to be used with access token. By default, the scope includes all permissions configured during the application registration phase -
refresh_token
For `refresh_token` grant type only. Previously issued refresh token. -
endpoint_id
The unique identifier of a client application instance. If not specified, the derived or auto generated value will be used -
pin
-
client_id
OAuth client identifier (if not specified via `Authorization` header) -
account_id
-
partner_account_id
-
client_assertion_type
Client assertion type -
client_assertion
Client assertion -
assertion
For `jwt_bearer` grant type only. Assertion -
brand_id
-
code_verifier
PKCE code verifier -
device_code
-
ivr_pin
For `ivr_pin` grant type only. IVR pin.
-
-
Constructor Details
-
GetTokenRequest
public GetTokenRequest()
-
-
Method Details
-
username
-
password
-
extension
-
grant_type
-
code
-
redirect_uri
-
access_token_ttl
-
refresh_token_ttl
-
scope
-
refresh_token
-
endpoint_id
-
pin
-
client_id
-
account_id
-
partner_account_id
-
client_assertion_type
-
client_assertion
-
assertion
-
brand_id
-
code_verifier
-
device_code
-
ivr_pin
-