|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.security.authentication.DefaultAuthenticationService
public class DefaultAuthenticationService
Default implementation of AuthenticationService used for
logging in and out.
Simple usage example with a given BeanFactory:
AuthenticationService as = (AuthenticationService)
beanFactory.getBean("authenticationService");
as.login(loginContext, callbackHandler);
Both parameters are optional, if they are included in the applicationContext
configuration. The bean may contain two properties :
| Constructor Summary | |
|---|---|
DefaultAuthenticationService()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
authenticate(org.springframework.security.core.Authentication auth)
Authenticate using the given Authentication object. |
org.springframework.security.core.Authentication |
getAuthenticationData()
Return the authentication data that is stored for this thread. |
String |
getUserName()
After the user has logged in, the user's name can be accessed using this method. |
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager am)
Sets the authenticationManager to be used for the authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuthenticationService()
| Method Detail |
|---|
public org.springframework.security.core.Authentication getAuthenticationData()
getAuthenticationData in interface AuthenticationServicepublic void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager am)
am - The AuthenticationManager to be used for the authentication.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void authenticate(org.springframework.security.core.Authentication auth)
authenticate in interface AuthenticationServiceauth - The Authentication object.public String getUserName()
getUserName in interface AuthenticationService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||