Class PrefixedClaimMapping

    • Constructor Detail

      • PrefixedClaimMapping

        public PrefixedClaimMapping()
        No args constructor for use in serialization
      • PrefixedClaimMapping

        public PrefixedClaimMapping​(String claim,
                                    String prefix)
    • Method Detail

      • getClaim

        public String getClaim()
        claim is a JWT token claim to be used in the mapping
      • setClaim

        public void setClaim​(String claim)
        claim is a JWT token claim to be used in the mapping
      • getPrefix

        public String getPrefix()
        prefix is a string to prefix the value from the token in the result of the claim mapping.


        By default, no prefixing occurs.


        Example: if `prefix` is set to "myoidc:"" and the `claim` in JWT contains an array of strings "a", "b" and "c", the mapping will result in an array of string "myoidc:a", "myoidc:b" and "myoidc:c".

      • setPrefix

        public void setPrefix​(String prefix)
        prefix is a string to prefix the value from the token in the result of the claim mapping.


        By default, no prefixing occurs.


        Example: if `prefix` is set to "myoidc:"" and the `claim` in JWT contains an array of strings "a", "b" and "c", the mapping will result in an array of string "myoidc:a", "myoidc:b" and "myoidc:c".

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)