ch.elca.el4j.services.security.authentication
Interface AuthenticationService

All Known Implementing Classes:
DefaultAuthenticationService

public interface AuthenticationService

AuthenticationService interface. Provides methods to log in and out. If you are already logged in, you have to log out first and then log in again.

Author:
Raphael Boog (RBO), Andreas Pfenninger (APR), Christoph Schwitter (CSC)
File-location:
AuthenticationService
Last check-in date:
2010-01-15 12:21:07 +0100 (Fr, 15. Jan 2010) by jonasha for revision 4091

Method Summary
 void authenticate(org.springframework.security.core.Authentication auth)
          Authenticate using the given Authentication object.
 org.springframework.security.core.Authentication getAuthenticationData()
          After a login method has been called, or the user is authenticated in any other way, the authentication data object as constructed during the authentication process can be accessed using this method.
 String getUserName()
          After the user has logged in, the user's name can be accessed using this method.
 

Method Detail

authenticate

void authenticate(org.springframework.security.core.Authentication auth)
Authenticate using the given Authentication object.

Parameters:
auth - The Authentication object.

getAuthenticationData

org.springframework.security.core.Authentication getAuthenticationData()
After a login method has been called, or the user is authenticated in any other way, the authentication data object as constructed during the authentication process can be accessed using this method.

Returns:
The authentication data object representing the user.

getUserName

String getUserName()
After the user has logged in, the user's name can be accessed using this method.

Returns:
The name of the logged in user.


Copyright © 2005-2011 ELCA. All Rights Reserved.