org.springframework.security.core.session
Interface SessionIdentifierAware

All Known Implementing Classes:
PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails, WebAuthenticationDetails

public interface SessionIdentifierAware

Implemented by Authentication.getDetails() implementations that are capable of returning a session ID.

This interface is used by org.springframework.security.authentication.concurrent.SessionRegistryUtils to extract the session ID from an Authentication object. In turn, SessionRegistryUtils is used by ConcurrentSessionControllerImpl. If not using this latter implementation, you do not need the Authentication.getDetails() object to implement SessionIdentifierAware.

Version:
$Id: SessionIdentifierAware.java 3920 2009-10-05 15:51:00Z ltaylor $
Author:
Ben Alex

Method Summary
 String getSessionId()
          Obtains the session ID.
 

Method Detail

getSessionId

String getSessionId()
Obtains the session ID.

Returns:
the session ID, or null if not known.


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.