Class BetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth.VisitorAn interface that defines how to map each variant of TokenEndpointAuth to a value of type T.
public final classBetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth.Type
-
Method Summary
-
-
Method Detail
-
none
final Optional<BetaManagedAgentsTokenEndpointAuthNoneResponse> none()
Token endpoint requires no client authentication.
-
clientSecretBasic
final Optional<BetaManagedAgentsTokenEndpointAuthBasicResponse> clientSecretBasic()
Token endpoint uses HTTP Basic authentication with client credentials.
-
clientSecretPost
final Optional<BetaManagedAgentsTokenEndpointAuthPostResponse> clientSecretPost()
Token endpoint uses POST body authentication with client credentials.
-
isClientSecretBasic
final Boolean isClientSecretBasic()
-
isClientSecretPost
final Boolean isClientSecretPost()
-
asNone
final BetaManagedAgentsTokenEndpointAuthNoneResponse asNone()
Token endpoint requires no client authentication.
-
asClientSecretBasic
final BetaManagedAgentsTokenEndpointAuthBasicResponse asClientSecretBasic()
Token endpoint uses HTTP Basic authentication with client credentials.
-
asClientSecretPost
final BetaManagedAgentsTokenEndpointAuthPostResponse asClientSecretPost()
Token endpoint uses POST body authentication with client credentials.
-
accept
final <T extends Any> T accept(BetaManagedAgentsMcpOAuthRefreshResponse.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(BetaManagedAgentsTokenEndpointAuthNoneResponse none) { return Optional.of(none.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsMcpOAuthRefreshResponse.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 BetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth ofNone(BetaManagedAgentsTokenEndpointAuthNoneResponse none)
Token endpoint requires no client authentication.
-
ofClientSecretBasic
final static BetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth ofClientSecretBasic(BetaManagedAgentsTokenEndpointAuthBasicResponse clientSecretBasic)
Token endpoint uses HTTP Basic authentication with client credentials.
-
ofClientSecretPost
final static BetaManagedAgentsMcpOAuthRefreshResponse.TokenEndpointAuth ofClientSecretPost(BetaManagedAgentsTokenEndpointAuthPostResponse clientSecretPost)
Token endpoint uses POST body authentication with client credentials.
-
-
-
-