hudson.plugins.openid
Class Identity

java.lang.Object
  extended by hudson.plugins.openid.Identity

public class Identity
extends java.lang.Object

Represents an identity information given by the OpenID provider.

Author:
Kohsuke Kawaguchi

Field Summary
 java.lang.String email
           
 java.lang.String fullName
           
 java.lang.String nick
           
 java.lang.String openId
           
 java.util.List<org.acegisecurity.GrantedAuthority> teams
           
 
Constructor Summary
Identity(org.openid4java.message.AuthSuccess authSuccess)
           
 
Method Summary
 java.lang.String getEffectiveNick()
          Obtains the token suitable as the user ID.
 void updateProfile(hudson.model.User u)
          Updates the user information on Hudson based on the information in this identity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openId

public final java.lang.String openId

nick

public final java.lang.String nick

fullName

public final java.lang.String fullName

email

public final java.lang.String email

teams

public final java.util.List<org.acegisecurity.GrantedAuthority> teams
Constructor Detail

Identity

public Identity(org.openid4java.message.AuthSuccess authSuccess)
         throws org.openid4java.OpenIDException
Throws:
org.openid4java.OpenIDException
Method Detail

getEffectiveNick

public java.lang.String getEffectiveNick()
Obtains the token suitable as the user ID.


updateProfile

public void updateProfile(hudson.model.User u)
                   throws java.io.IOException
Updates the user information on Hudson based on the information in this identity.

Throws:
java.io.IOException


Copyright © 2004-2011. All Rights Reserved.