Structure
AudienceClaim
The “aud” (audience) claim identifies the recipients that the JWT is intended for. Each principal intended to process the JWT MUST identify itself with a value in the audience claim. If the principal processing the claim does not identify itself with a value in the “aud” claim when this claim is present, then the JWT MUST be rejected. In the general case, the “aud” value is an array of case- sensitive strings, each containing a StringOrURI value. In the special case when the JWT has one audience, the “aud” value MAY be a single case-sensitive string containing a StringOrURI value. The interpretation of audience values is generally application specific. Use of this claim is OPTIONAL.
struct AudienceClaim
Topics
Initializers
init(stringLiteral:)SeeExpressibleByStringLiteral.init(value:)SeeJWTClaim.
Instance Properties
Instance Methods
verifyIntendedAudience(includes:)Verify that the given audience is included as one of the claim’s intended audiences by simple string comparison.
Relationships
Conforms To
JWTClaimJWTMultiValueClaimSwift.DecodableSwift.EncodableSwift.EquatableSwift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.SendableSwift.SendableMetatype