Class OidcUserAuthority

  • All Implemented Interfaces:
    java.io.Serializable, org.springframework.security.core.GrantedAuthority

    public class OidcUserAuthority
    extends OAuth2UserAuthority
    A GrantedAuthority that may be associated to an OidcUser.
    Since:
    5.0
    See Also:
    OidcUser, Serialized Form
    • Constructor Detail

      • OidcUserAuthority

        public OidcUserAuthority​(OidcIdToken idToken)
        Constructs a OidcUserAuthority using the provided parameters.
        Parameters:
        idToken - the ID Token containing claims about the user
      • OidcUserAuthority

        public OidcUserAuthority​(java.lang.String authority,
                                 OidcIdToken idToken,
                                 OidcUserInfo userInfo)
        Constructs a OidcUserAuthority using the provided parameters.
        Parameters:
        authority - the authority granted to the user
        idToken - the ID Token containing claims about the user
        userInfo - the UserInfo containing claims about the user, may be null