Class BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth.VisitorAn interface that defines how to map each variant of TokenEndpointAuth to a value of type T.
public final classBetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth.Type
-
Method Summary
-
-
Method Detail
-
none
final Optional<BetaManagedAgentsTokenEndpointAuthNoneParam> none()
Token endpoint requires no client authentication.
-
clientSecretBasic
final Optional<BetaManagedAgentsTokenEndpointAuthBasicParam> clientSecretBasic()
Token endpoint uses HTTP Basic authentication with client credentials.
-
clientSecretPost
final Optional<BetaManagedAgentsTokenEndpointAuthPostParam> clientSecretPost()
Token endpoint uses POST body authentication with client credentials.
-
clientSecret
final Optional<String> clientSecret()
-
isClientSecretBasic
final Boolean isClientSecretBasic()
-
isClientSecretPost
final Boolean isClientSecretPost()
-
asNone
final BetaManagedAgentsTokenEndpointAuthNoneParam asNone()
Token endpoint requires no client authentication.
-
asClientSecretBasic
final BetaManagedAgentsTokenEndpointAuthBasicParam asClientSecretBasic()
Token endpoint uses HTTP Basic authentication with client credentials.
-
asClientSecretPost
final BetaManagedAgentsTokenEndpointAuthPostParam asClientSecretPost()
Token endpoint uses POST body authentication with client credentials.
-
accept
final <T extends Any> T accept(BetaManagedAgentsMcpOAuthRefreshParams.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> visitNone(BetaManagedAgentsTokenEndpointAuthNoneParam none) { return Optional.of(none.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsMcpOAuthRefreshParams.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.
-
ofNone
final static BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth ofNone(BetaManagedAgentsTokenEndpointAuthNoneParam none)
Token endpoint requires no client authentication.
-
ofClientSecretBasic
final static BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth ofClientSecretBasic(BetaManagedAgentsTokenEndpointAuthBasicParam clientSecretBasic)
Token endpoint uses HTTP Basic authentication with client credentials.
-
ofClientSecretBasic
final static BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth ofClientSecretBasic(String clientSecret)
Returns an immutable instance of TokenEndpointAuth whose ofClientSecretBasic variant is built from the given required clientSecret.
-
ofClientSecretPost
final static BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth ofClientSecretPost(BetaManagedAgentsTokenEndpointAuthPostParam clientSecretPost)
Token endpoint uses POST body authentication with client credentials.
-
ofClientSecretPost
final static BetaManagedAgentsMcpOAuthRefreshParams.TokenEndpointAuth ofClientSecretPost(String clientSecret)
Returns an immutable instance of TokenEndpointAuth whose ofClientSecretPost variant is built from the given required clientSecret.
-
-
-
-