TaskBean API
0.5

glogic.sample.sys
Class AuthKey

java.lang.Object
  extended byglogic.sample.sys.AuthKey
All Implemented Interfaces:
JThinSsoKey

public final class AuthKey
extends java.lang.Object
implements JThinSsoKey

Simple token used to define authenticated user and associates them to a particular application.

Author:
Sam Taha

Constructor Summary
AuthKey(User user, java.util.List appNameList)
           
 
Method Summary
 java.util.List getApplicationList()
          Name List of applications user has access rights to.
 User getUser()
          Get username of authenticated user
 java.lang.String getUsername()
           
 boolean isAppAuthorized(java.lang.String appName)
          Returns true if the app has already been authorized (ie is in List).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthKey

public AuthKey(User user,
               java.util.List appNameList)
Method Detail

getUser

public User getUser()
Get username of authenticated user

Returns:
username

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface JThinSsoKey

getApplicationList

public java.util.List getApplicationList()
Name List of applications user has access rights to.

Returns:
List of String objects listing app names as defined in web.xml.

isAppAuthorized

public boolean isAppAuthorized(java.lang.String appName)
Returns true if the app has already been authorized (ie is in List).


TaskBean API
0.5

Copyright © Grand Logic, Inc. All Rights Reserved.