Class GoogleUserInfo
- java.lang.Object
-
- hudson.model.UserProperty
-
- org.jenkinsci.plugins.googlelogin.GoogleUserInfo
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<UserProperty>
,ReconfigurableDescribable<UserProperty>
public class GoogleUserInfo extends UserProperty
Represents an identity information from the oauth provider. This is from https://www.googleapis.com/userinfo/v2/me
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoogleUserInfo.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GoogleUserInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
String
getName()
void
updateProfile(User u)
Updates the user based on the information in this identity.-
Methods inherited from class hudson.model.UserProperty
all, getDescriptor, reconfigure, setUser
-
-
-
-
Field Detail
-
family_name
public String family_name
-
name
public String name
-
picture
public String picture
-
locale
public String locale
-
gender
public String gender
-
email
public String email
-
link
public String link
-
given_name
public String given_name
-
id
public String id
-
verified_email
public boolean verified_email
-
-
Method Detail
-
getEmail
public String getEmail()
-
getName
public String getName()
-
updateProfile
public void updateProfile(User u) throws IOException
Updates the user based on the information in this identity.- Throws:
IOException
-
-