@Service @Validated @Transactional public class AuthenticationService extends Object
Constructor and Description |
---|
AuthenticationService() |
Modifier and Type | Method and Description |
---|---|
String |
authenticate(org.springframework.security.core.Authentication authentication,
String applicationSessionId)
Provides access to Spring's authentication method.
|
String |
authenticate(UserDetailsDTO user)
Provides access to Spring's authentication method.
|
public String authenticate(org.springframework.security.core.Authentication authentication, String applicationSessionId)
authentication
- Authentication object with user credentialsapplicationSessionId
- the sessionId of the application the User is
usingorg.springframework.security.core.AuthenticationException
- If authentication failspublic String authenticate(UserDetailsDTO user)
user
- An object containing the username, the password and the
sessionId of the User to be authenticatedorg.springframework.security.core.AuthenticationException
- If authentication failsCopyright © 2020. All rights reserved.