Class BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuthUpdated HTTP Basic authentication parameters for the token endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth.VisitorAn interface that defines how to map each variant of TokenEndpointAuth to a value of type T.
-
Method Summary
-
-
Method Detail
-
clientSecretBasic
final Optional<BetaManagedAgentsTokenEndpointAuthBasicUpdateParam> clientSecretBasic()
Updated HTTP Basic authentication parameters for the token endpoint.
-
clientSecretPost
final Optional<BetaManagedAgentsTokenEndpointAuthPostUpdateParam> clientSecretPost()
Updated POST body authentication parameters for the token endpoint.
-
isClientSecretBasic
final Boolean isClientSecretBasic()
-
isClientSecretPost
final Boolean isClientSecretPost()
-
asClientSecretBasic
final BetaManagedAgentsTokenEndpointAuthBasicUpdateParam asClientSecretBasic()
Updated HTTP Basic authentication parameters for the token endpoint.
-
asClientSecretPost
final BetaManagedAgentsTokenEndpointAuthPostUpdateParam asClientSecretPost()
Updated POST body authentication parameters for the token endpoint.
-
accept
final <T extends Any> T accept(BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = tokenEndpointAuth.accept(new TokenEndpointAuth.Visitor<Optional<String>>() { @Override public Optional<String> visitClientSecretBasic(BetaManagedAgentsTokenEndpointAuthBasicUpdateParam clientSecretBasic) { return Optional.of(clientSecretBasic.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofClientSecretBasic
final static BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth ofClientSecretBasic(BetaManagedAgentsTokenEndpointAuthBasicUpdateParam clientSecretBasic)
Updated HTTP Basic authentication parameters for the token endpoint.
-
ofClientSecretPost
final static BetaManagedAgentsMcpOAuthRefreshUpdateParams.TokenEndpointAuth ofClientSecretPost(BetaManagedAgentsTokenEndpointAuthPostUpdateParam clientSecretPost)
Updated POST body authentication parameters for the token endpoint.
-
-
-
-