@Service
public class SecurityService
extends java.lang.Object
Constructor and Description |
---|
SecurityService() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate(java.lang.String userId)
Check if given a userId the user is logged on, otherwise creates a
session for the user
|
org.springframework.security.core.Authentication |
getAuthentication()
Getter of the user session in context
|
public org.springframework.security.core.Authentication authenticate(java.lang.String userId)
userId
- public org.springframework.security.core.Authentication getAuthentication()