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

Constructor Summary
Identity(org.openid4java.message.AuthSuccess authSuccess)
           
 
Method Summary
 java.lang.String getEffectiveNick()
          Obtains the token suitable as the user ID.
 java.lang.String getEmail()
           
 java.lang.String getFullName()
           
 java.util.List<org.acegisecurity.GrantedAuthority> getGrantedAuthorities()
           
 java.lang.String getNick()
           
 java.lang.String getOpenId()
           
 com.google.common.collect.ListMultimap<java.lang.String,java.lang.String> getProperties()
           
 void setEmail(java.lang.String email)
           
 void setFullName(java.lang.String fullName)
           
 void setNick(java.lang.String nick)
           
 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
 

Constructor Detail

Identity

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

getOpenId

public java.lang.String getOpenId()

getNick

public java.lang.String getNick()

setNick

public void setNick(java.lang.String nick)

getEffectiveNick

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


getFullName

public java.lang.String getFullName()

setFullName

public void setFullName(java.lang.String fullName)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getGrantedAuthorities

public java.util.List<org.acegisecurity.GrantedAuthority> getGrantedAuthorities()

getProperties

public com.google.common.collect.ListMultimap<java.lang.String,java.lang.String> getProperties()

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-2012. All Rights Reserved.