|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.authentication.CachingAuthenticationScheme
A wrapper around an AuthenticationScheme that performs credential caching.
Constructor Summary | |
CachingAuthenticationScheme(AuthenticationScheme delegate,
long maxCacheDuration,
int maxCacheSize)
|
Method Summary | |
boolean |
check(org.outerj.daisy.repository.Credentials credentials)
|
void |
clearCaches()
Clear caches maintained by this authentication scheme, if any. |
org.outerj.daisy.repository.user.User |
createUser(org.outerj.daisy.repository.Credentials crendentials,
org.outerj.daisy.repository.user.UserManager userManager)
If a user does not exist, the authentication scheme can be offered the possibility to create the user (this is defined in the configuration of the UserAuthenticator). |
java.lang.String |
getDescription()
|
java.lang.String |
getName()
A unique name for this authentication scheme (max. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachingAuthenticationScheme(AuthenticationScheme delegate, long maxCacheDuration, int maxCacheSize)
maxCacheDuration
- max time an entry can stay in the cache before becoming invalid, in millismaxCacheSize
- maximum size of the cache (should be large enough to handle max expected concurrent users
for optimal performance)Method Detail |
public java.lang.String getName()
AuthenticationScheme
getName
in interface AuthenticationScheme
public java.lang.String getDescription()
getDescription
in interface AuthenticationScheme
public void clearCaches()
AuthenticationScheme
clearCaches
in interface AuthenticationScheme
public boolean check(org.outerj.daisy.repository.Credentials credentials) throws AuthenticationException
check
in interface AuthenticationScheme
AuthenticationException
- if an error occured while authenticatingpublic org.outerj.daisy.repository.user.User createUser(org.outerj.daisy.repository.Credentials crendentials, org.outerj.daisy.repository.user.UserManager userManager) throws AuthenticationException
AuthenticationScheme
createUser
in interface AuthenticationScheme
AuthenticationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |