Class GoogleUserInfo

java.lang.Object
io.jenkins.plugins.googlegroupsoauth.GoogleUserInfo

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class GoogleUserInfo extends Object
Profile claims extracted from the verified Google ID token, applied to the Jenkins User record (display name, email property).
  • Constructor Details

    • GoogleUserInfo

      public GoogleUserInfo(@NonNull com.google.api.client.googleapis.auth.oauth2.GoogleIdToken.Payload payload)
  • Method Details

    • getSubject

      @NonNull public String getSubject()
      Google's stable account id (the sub claim); unlike the email it is never reassigned.
    • getEmail

      @NonNull public String getEmail()
    • getName

      @CheckForNull public String getName()
    • updateProfile

      public void updateProfile(@NonNull User user) throws IOException
      Throws:
      IOException