Class UserInfo


  • public class UserInfo
    extends Object
    This class manages information related to the UserInfo OIDC query. The only required field is "sub" -- all others are optional. The getJSON() method should return a JSON response string based on the class variables. Can be subclassed to support getting user info from different sources. This uses a map internally since otherwise it is much trickier to turn this into a valid JSON object.
    • Constructor Detail

      • UserInfo

        public UserInfo()
    • Method Detail

      • toJSon

        public net.sf.json.JSONObject toJSon()
      • getBoolean

        public boolean getBoolean​(String key)
      • getInt

        public int getInt​(String key)
      • getJSON

        public net.sf.json.JSONObject getJSON​(String key)
      • put

        public void put​(String key,
                        net.sf.json.JSONObject json)
      • getSub

        public String getSub()
      • setSub

        public void setSub​(String sub)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getGiven_name

        public String getGiven_name()
      • setGiven_name

        public void setGiven_name​(String given_name)
      • getFamily_name

        public String getFamily_name()
      • setFamily_name

        public void setFamily_name​(String family_name)
      • getMiddle_name

        public String getMiddle_name()
      • setMiddle_name

        public void setMiddle_name​(String middle_name)
      • getNickname

        public String getNickname()
      • setNickname

        public void setNickname​(String nickname)
      • getPreferred_username

        public String getPreferred_username()
      • setPreferred_username

        public void setPreferred_username​(String preferred_username)
      • getPicture

        public String getPicture()
      • setPicture

        public void setPicture​(String picture)
      • getWebsite

        public String getWebsite()
      • setWebsite

        public void setWebsite​(String website)
      • getEmail

        public String getEmail()
      • setEmail

        public void setEmail​(String email)
      • isEmail_verified

        public boolean isEmail_verified()
      • setEmail_verified

        public void setEmail_verified​(boolean email_verified)
      • getGender

        public String getGender()
      • setGender

        public void setGender​(String gender)
      • getBirthdate

        public String getBirthdate()
      • setBirthdate

        public void setBirthdate​(String birthdate)
      • getZoneinfo

        public String getZoneinfo()
      • setZoneinfo

        public void setZoneinfo​(String zoneinfo)
      • getLocale

        public String getLocale()
      • setLocale

        public void setLocale​(String locale)
      • getPhone_number

        public String getPhone_number()
      • setPhone_number

        public void setPhone_number​(String phone_number)
      • isPhone_number_verified

        public boolean isPhone_number_verified()
      • setPhone_number_verified

        public void setPhone_number_verified​(boolean phone_number_verified)
      • getAddress

        public net.sf.json.JSONObject getAddress()
      • setAddress

        public void setAddress​(net.sf.json.JSONObject address)
      • getUpdated_at

        public int getUpdated_at()
      • setUpdated_at

        public void setUpdated_at​(int updated_at)