Class KeycloakRealmRoleConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​Collection<org.springframework.security.core.GrantedAuthority>>

    public class KeycloakRealmRoleConverter
    extends Object
    implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​Collection<org.springframework.security.core.GrantedAuthority>>
    Converts JWT token into list of roles.
    • Constructor Detail

      • KeycloakRealmRoleConverter

        public KeycloakRealmRoleConverter()
    • Method Detail

      • convert

        public Collection<org.springframework.security.core.GrantedAuthority> convert​(org.springframework.security.oauth2.jwt.Jwt jwt)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​Collection<org.springframework.security.core.GrantedAuthority>>