P - the type of ClaimsMutator to return for method chaining.public static interface ClaimsMutator.AudienceCollection<P> extends NestedCollection<String,P>
NestedCollection for setting ClaimsMutator.audience() values that also allows overriding the collection
to be a single string value for legacy JWT recipients if necessary.single(String)| Modifier and Type | Method and Description |
|---|---|
P |
single(String aud)
Deprecated.
This is technically not deprecated because the JWT RFC mandates support for single string values,
but it is marked as deprecated to discourage its use when possible.
|
add, add, clear, removeand@Deprecated P single(String aud)
aud (audience)
Claim as a single String, NOT a String array. This method exists only for producing
JWTs sent to legacy recipients that are unable to interpret the aud value as a JSON String Array;
it is strongly recommended to avoid calling this method whenever possible and favor the
add(String) or CollectionMutator.add(Collection) methods instead, as they ensure a single
deterministic data type for recipients.aud - the value to use as the aud Claim single-String value (and not an array of Strings), or
null, empty or whitespace to remove the property from the JSON map.Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.