|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConcurrentSessionController
Provides two methods that can be called by an AuthenticationManager
to integrate with the
concurrent session handling infrastructure.
Method Summary | |
---|---|
void |
checkAuthenticationAllowed(Authentication request)
Called by any class that wishes to know whether the current authentication request should be permitted. |
void |
registerSuccessfulAuthentication(Authentication authentication)
Called by an AuthenticationManager when the authentication was successful. |
Method Detail |
---|
void checkAuthenticationAllowed(Authentication request) throws AuthenticationException
AuthenticationManager
s before they authenticate, but could equally
include Filter
s or other interceptors that wish to confirm the ongoing validity of a previously
authenticated Authentication
.The implementation should throw a suitable exception if the user has exceeded their maximum allowed concurrent sessions.
request
- the authentication request (never null
)
AuthenticationException
- if the user has exceeded their maximum allowed current sessionsvoid registerSuccessfulAuthentication(Authentication authentication)
AuthenticationManager
when the authentication was successful. An
implementation is expected to register the authenticated user in some sort of registry, for future concurrent
tracking via the checkAuthenticationAllowed(Authentication)
method.
authentication
- the successfully authenticated user (never null
)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |