Interface ClientCredentials


public interface ClientCredentials
Optional. Used for OAuth2 authentication.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Dedicated Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting builder
    The 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 and expires_in value (in seconds). The expires_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

      static ClientCredentials.Builder builder()
      Getting builder
      Returns:
      New Builder instance