Interface ClientCredentials
public interface ClientCredentials
Optional. Used for OAuth2 authentication.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientCredentials.Builder
builder()
Getting builderThe Client ID that will be used in the OAuth2 Client Credentials flow.The Client Secret that will be used in the OAuth2 Client Credentials flow.The endpoint that will be used in the OAuth2 Client Credentials flow.
-
Method Details
-
getClientId
String getClientId()The Client ID that will be used in the OAuth2 Client Credentials flow.- Returns:
- clientId
-
getClientSecret
String getClientSecret()The Client Secret that will be used in the OAuth2 Client Credentials flow.- Returns:
- clientSecret
-
getEndpoint
String getEndpoint()The endpoint that will be used in the OAuth2 Client Credentials flow. Expected to return a JSON with an access token andexpires_in
value (in seconds). Theexpires_in
value, which must be a minimum of 30 seconds and a maximum of 3600 seconds, is how long Sinch will save the access token before asking for a new one.- Returns:
- endpoint
-
builder
Getting builder- Returns:
- New Builder instance
-