org.sakaiproject.hybrid.util
Class NakamuraAuthenticationHelper.AuthInfo

java.lang.Object
  extended by org.sakaiproject.hybrid.util.NakamuraAuthenticationHelper.AuthInfo
Enclosing class:
NakamuraAuthenticationHelper

public static class NakamuraAuthenticationHelper.AuthInfo
extends Object

Static final class for storing cached results from Nakamura lookup. Generally the caller should expect raw results from the JSON parsing (e.g. principal could in theory be null).


Constructor Summary
protected NakamuraAuthenticationHelper.AuthInfo(String json)
           
 
Method Summary
 String getEmailAddress()
           
 String getFirstName()
           
 String getLastName()
           
 String getPrincipal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NakamuraAuthenticationHelper.AuthInfo

protected NakamuraAuthenticationHelper.AuthInfo(String json)
Parameters:
json - The JSON returned from nakamura.
Method Detail

getFirstName

public String getFirstName()
Returns:
the givenName

getLastName

public String getLastName()
Returns:
the familyName

getEmailAddress

public String getEmailAddress()
Returns:
the emailAddress

getPrincipal

public String getPrincipal()
Returns:
the principal


Copyright © 2009-2012 The Sakai Foundation. All Rights Reserved.