com.dyuproject.openid
Class OpenIdUser

java.lang.Object
  extended by com.dyuproject.openid.OpenIdUser
All Implemented Interfaces:
Serializable, org.mortbay.util.ajax.JSON.Convertible

public class OpenIdUser
extends Object
implements Serializable, org.mortbay.util.ajax.JSON.Convertible

The openid user where the identity, claimedId and association metadata are persisted.

Author:
David Yu
See Also:
Serialized Form

Field Summary
static String ATTR_NAME
           
 
Constructor Summary
OpenIdUser()
           
 
Method Summary
 void fromJSON(Map map)
           
 Map<String,Object> getA()
           
 String getAssocHandle()
           
 Object getAttribute(String name)
           
 Map<String,Object> getAttributes()
           
 String getClaimedId()
           
 String getIdentity()
           
 String getOpenIdDelegate()
           
 String getOpenIdServer()
           
 boolean isAssociated()
           
 boolean isAuthenticated()
           
 boolean removeAttribute(String name)
           
 void setAttribute(String key, Object value)
           
 void toJSON(org.mortbay.util.ajax.JSON.Output out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

OpenIdUser

public OpenIdUser()
Method Detail

isAssociated

public boolean isAssociated()

isAuthenticated

public boolean isAuthenticated()

getClaimedId

public String getClaimedId()

getOpenIdServer

public String getOpenIdServer()

getOpenIdDelegate

public String getOpenIdDelegate()

getIdentity

public String getIdentity()

getAssocHandle

public String getAssocHandle()

setAttribute

public void setAttribute(String key,
                         Object value)

getAttributes

public Map<String,Object> getAttributes()

getA

public Map<String,Object> getA()

getAttribute

public Object getAttribute(String name)

removeAttribute

public boolean removeAttribute(String name)

fromJSON

public void fromJSON(Map map)
Specified by:
fromJSON in interface org.mortbay.util.ajax.JSON.Convertible

toJSON

public void toJSON(org.mortbay.util.ajax.JSON.Output out)
Specified by:
toJSON in interface org.mortbay.util.ajax.JSON.Convertible


Copyright © 2013. All Rights Reserved.