Class IssuerCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class IssuerCreateParams implements Params
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Register an OIDC issuer that Anthropic will trust for workload identity federation in your organization.
The
jwksfield controls how the issuer's signing keys are obtained and takes one of three shapes selected bytype:discovery(resolve keys through OIDC discovery),explicit_url(fetch keys from a fixed JWKS URL), orinline(provide a static key set). Whenjwks.typeisdiscoveryand nodiscovery_baseis set, the issuer URL must be publicly reachable over HTTPS so Anthropic can fetch the discovery document; forexplicit_urlandinlinemodes the issuer URL is only matched as the JWT'sissclaim and is not fetched.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classIssuerCreateParams.BuilderA builder for IssuerCreateParams.
public final classIssuerCreateParams.Bodypublic final classIssuerCreateParams.JwksHow signing keys are obtained. Defaults to OIDC discovery.
-
Method Summary
Modifier and Type Method Description final StringissuerUrl()The issclaim value to match against.final Stringname()Slug identifier (lowercase, digits, hyphens). final Optional<Boolean>checkJti()Whether the jwt-bearer exchange enforces JTI single-use (replay protection) for tokens from this issuer. final Optional<IssuerCreateParams.Jwks>jwks()How signing keys are obtained. final Optional<Long>maxJwtLifetimeSeconds()Maximum allowed iat→exp spread for assertions from this issuer (1-176400 seconds, i.e. final JsonField<String>_issuerUrl()Returns the raw JSON value of issuerUrl. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<Boolean>_checkJti()Returns the raw JSON value of checkJti. final JsonField<IssuerCreateParams.Jwks>_jwks()Returns the raw JSON value of jwks. final JsonField<Long>_maxJwtLifetimeSeconds()Returns the raw JSON value of maxJwtLifetimeSeconds. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final IssuerCreateParams.BuildertoBuilder()final IssuerCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static IssuerCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of IssuerCreateParams. -
-
Method Detail
-
name
final String name()
Slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
checkJti
final Optional<Boolean> checkJti()
Whether the jwt-bearer exchange enforces JTI single-use (replay protection) for tokens from this issuer. Defaults to true. Applies only to assertions carrying a
jticlaim; tokens without one are accepted without single-use enforcement.
-
jwks
final Optional<IssuerCreateParams.Jwks> jwks()
How signing keys are obtained. Defaults to OIDC discovery.
-
maxJwtLifetimeSeconds
final Optional<Long> maxJwtLifetimeSeconds()
Maximum allowed iat→exp spread for assertions from this issuer (1-176400 seconds, i.e. up to 49h). Defaults to 3600 (1h). Assertions must carry both
iatandexp; a missingiatis rejected.
-
_issuerUrl
final JsonField<String> _issuerUrl()
Returns the raw JSON value of issuerUrl.
Unlike issuerUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_checkJti
final JsonField<Boolean> _checkJti()
Returns the raw JSON value of checkJti.
Unlike checkJti, this method doesn't throw if the JSON field has an unexpected type.
-
_jwks
final JsonField<IssuerCreateParams.Jwks> _jwks()
Returns the raw JSON value of jwks.
Unlike jwks, this method doesn't throw if the JSON field has an unexpected type.
-
_maxJwtLifetimeSeconds
final JsonField<Long> _maxJwtLifetimeSeconds()
Returns the raw JSON value of maxJwtLifetimeSeconds.
Unlike maxJwtLifetimeSeconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final IssuerCreateParams.Builder toBuilder()
-
_body
final IssuerCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static IssuerCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of IssuerCreateParams.
The following fields are required:
.issuerUrl() .name()
-
-
-
-