Class FederationRuleMatch
-
- All Implemented Interfaces:
public final class FederationRuleMatchDoes the incoming JWT qualify?
All populated fields must pass; omitted fields are skipped. At least one of
subject_prefix(other than a wildcard-only value like*),claims, orconditionis required;audiencealone is not sufficient.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFederationRuleMatch.BuilderA builder for FederationRuleMatch.
public final classFederationRuleMatch.ClaimsExact-match
{claim: value}pairs against top-level claims. Only string-valued claims can be matched; useconditionfor non-string claims.
-
Method Summary
Modifier and Type Method Description final Optional<String>audience()Exact match against the audclaim (any element if array).final Optional<FederationRuleMatch.Claims>claims()Exact-match {claim: value}pairs against top-level claims.final Optional<String>condition()CEL expression over claims for logic the structural fields can't express. final Optional<String>subjectPrefix()Match the verified JWT subclaim.final JsonField<String>_audience()Returns the raw JSON value of audience. final JsonField<FederationRuleMatch.Claims>_claims()Returns the raw JSON value of claims. final JsonField<String>_condition()Returns the raw JSON value of condition. final JsonField<String>_subjectPrefix()Returns the raw JSON value of subjectPrefix. final Map<String, JsonValue>_additionalProperties()final FederationRuleMatch.BuildertoBuilder()final FederationRuleMatchvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FederationRuleMatch.Builderbuilder()Returns a mutable builder for constructing an instance of FederationRuleMatch. -
-
Method Detail
-
audience
final Optional<String> audience()
Exact match against the
audclaim (any element if array). When omitted, the JWT'saudmust still equal Anthropic's expected audience for the issuer; setting this field overrides that default.
-
claims
final Optional<FederationRuleMatch.Claims> claims()
Exact-match
{claim: value}pairs against top-level claims. Only string-valued claims can be matched; useconditionfor non-string claims.
-
condition
final Optional<String> condition()
CEL expression over claims for logic the structural fields can't express. Must evaluate to a boolean and may reference only the
claimsvariable; a constant-true expression (such astrue) is rejected with 400.
-
subjectPrefix
final Optional<String> subjectPrefix()
Match the verified JWT
subclaim. Exact match unless the value ends with*, in which case it is a prefix match. Example:repo:my-org/my-repo:ref:refs/heads/main.
-
_audience
final JsonField<String> _audience()
Returns the raw JSON value of audience.
Unlike audience, this method doesn't throw if the JSON field has an unexpected type.
-
_claims
final JsonField<FederationRuleMatch.Claims> _claims()
Returns the raw JSON value of claims.
Unlike claims, this method doesn't throw if the JSON field has an unexpected type.
-
_condition
final JsonField<String> _condition()
Returns the raw JSON value of condition.
Unlike condition, this method doesn't throw if the JSON field has an unexpected type.
-
_subjectPrefix
final JsonField<String> _subjectPrefix()
Returns the raw JSON value of subjectPrefix.
Unlike subjectPrefix, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FederationRuleMatch.Builder toBuilder()
-
validate
final FederationRuleMatch 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.
-
builder
final static FederationRuleMatch.Builder builder()
Returns a mutable builder for constructing an instance of FederationRuleMatch.
-
-
-
-