orgs/OrgsClientCredentialProvider.java

twilio-java · src/main/java/com/twilio/credential/orgs/OrgsClientCredentialProvider.java · java · MIT
voice, Voice / Speech

Implements client credentials auth for Twilio orgs.

// Source: https://github.com/twilio/twilio-java | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
package com.twilio.credential.orgs;

import com.twilio.auth_strategy.AuthStrategy;
import com.twilio.auth_strategy.TokenAuthStrategy;
import com.twilio.constant.EnumConstants;
import com.twilio.credential.CredentialProvider;
import com.twilio.exception.AuthenticationException;
import com.twilio.http.bearertoken.OrgsTokenManager;
import com.twilio.http.bearertoken.TokenManager;

import java.util.Objects;

public class OrgsClientCredentialProvider extends CredentialProvider {
    private String grantType;
    private String clientId;
    private String clientSecret;
    private TokenManager tokenM

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key