com.atlassian.crowd.cache
Class UserAuthorisationCacheImpl

java.lang.Object
  extended by com.atlassian.crowd.cache.UserAuthorisationCacheImpl
All Implemented Interfaces:
UserAuthorisationCache

public class UserAuthorisationCacheImpl
extends Object
implements UserAuthorisationCache

Default implementation of UserAuthorisationCache in Crowd.

Since:
v2.2

Constructor Summary
UserAuthorisationCacheImpl(CacheManager cacheManager)
           
 
Method Summary
 void clear()
          Clears the user authorisation cache.
 Boolean isPermitted(String userName, String applicationName)
          Returns whether the user is permitted to authenticate with the application.
 void setPermitted(String userName, String applicationName, boolean permitted)
          Sets whether the user is permitted to authenticate with the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAuthorisationCacheImpl

public UserAuthorisationCacheImpl(CacheManager cacheManager)
Method Detail

setPermitted

public void setPermitted(String userName,
                         String applicationName,
                         boolean permitted)
Description copied from interface: UserAuthorisationCache
Sets whether the user is permitted to authenticate with the application.

Specified by:
setPermitted in interface UserAuthorisationCache
Parameters:
userName - username
applicationName - name of the application to authenticate
permitted - set to true if the user is allowed to authenticate with the application, otherwise false.

isPermitted

public Boolean isPermitted(String userName,
                           String applicationName)
Description copied from interface: UserAuthorisationCache
Returns whether the user is permitted to authenticate with the application.

Specified by:
isPermitted in interface UserAuthorisationCache
Parameters:
userName - username
applicationName - name of the application the user is authenticating against
Returns:
true if the user is permitted to authenticate with the application, false if the user is not permitted to authenticate, and null if the result is not in the cache.

clear

public void clear()
Description copied from interface: UserAuthorisationCache
Clears the user authorisation cache.

Specified by:
clear in interface UserAuthorisationCache


Copyright © 2012 Atlassian. All Rights Reserved.