Class DefaultOidcUser

    • Constructor Detail

      • DefaultOidcUser

        public DefaultOidcUser​(java.util.Collection<? extends GrantedAuthority> authorities,
                               OidcIdToken idToken)
        Constructs a DefaultOidcUser using the provided parameters.
        Parameters:
        authorities - the authorities granted to the user
        idToken - the ID Token containing claims about the user
      • DefaultOidcUser

        public DefaultOidcUser​(java.util.Collection<? extends GrantedAuthority> authorities,
                               OidcIdToken idToken,
                               java.lang.String nameAttributeKey)
        Constructs a DefaultOidcUser using the provided parameters.
        Parameters:
        authorities - the authorities granted to the user
        idToken - the ID Token containing claims about the user
        nameAttributeKey - the key used to access the user's "name" from DefaultOAuth2User.getAttributes()
      • DefaultOidcUser

        public DefaultOidcUser​(java.util.Collection<? extends GrantedAuthority> authorities,
                               OidcIdToken idToken,
                               OidcUserInfo userInfo)
        Constructs a DefaultOidcUser using the provided parameters.
        Parameters:
        authorities - the authorities granted to the user
        idToken - the ID Token containing claims about the user
        userInfo - the UserInfo containing claims about the user, may be null
      • DefaultOidcUser

        public DefaultOidcUser​(java.util.Collection<? extends GrantedAuthority> authorities,
                               OidcIdToken idToken,
                               OidcUserInfo userInfo,
                               java.lang.String nameAttributeKey)
        Constructs a DefaultOidcUser using the provided parameters.
        Parameters:
        authorities - the authorities granted to the user
        idToken - the ID Token containing claims about the user
        userInfo - the UserInfo containing claims about the user, may be null
        nameAttributeKey - the key used to access the user's "name" from DefaultOAuth2User.getAttributes()