public class ClaimUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
applyLangTags(Set<String> claims,
List<com.nimbusds.langtag.LangTag> langTags)
Applies the specified language tags to a set of claims.
|
public static Set<String> applyLangTags(Set<String> claims, List<com.nimbusds.langtag.LangTag> langTags)
Example:
Claims: "name", "given_name", "family_name"
Language tags: "bg-BG", "en-US"
Result: "name#bg-BG", "name#en-US",
"given_name#bg-BG", "given_name#en-US",
"family_name#bg-BG", "family_name#en-US"
claims - The claims to apply the language tags to. Claims
that already have a language will be returned
unmodified. Must not be null.langTags - The language tags to apply, null if not
specified.Copyright © 2019 Connect2id Ltd.. All rights reserved.