com.atlassian.crowd.integration.jive
Class CrowdAuthToken

java.lang.Object
  extended by com.atlassian.crowd.integration.jive.CrowdAuthToken
All Implemented Interfaces:
com.jivesoftware.base.AuthToken

public class CrowdAuthToken
extends java.lang.Object
implements com.jivesoftware.base.AuthToken


Constructor Summary
protected CrowdAuthToken(long userID, java.lang.String username)
          Construct an AuthToken for use in Jive.
 
Method Summary
 long getUserID()
           
 java.lang.String getUsername()
          Return the Crowd/Jive username of the principal.
 boolean isAnonymous()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdAuthToken

protected CrowdAuthToken(long userID,
                         java.lang.String username)
Construct an AuthToken for use in Jive.

For a valid AuthToken to exist, the principal must exist in both the Crowd and Jive databases.

Parameters:
userID - the Jive userID of the authenticated user.
username - the Crowd username of the authenticated user.
Method Detail

getUsername

public java.lang.String getUsername()
Return the Crowd/Jive username of the principal.

Returns:
username of authenticated principal.

getUserID

public long getUserID()
Specified by:
getUserID in interface com.jivesoftware.base.AuthToken

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface com.jivesoftware.base.AuthToken


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.