@Service(value="authenticationServiceFacade") public class AuthenticationServiceFacadeMockImpl extends AbstractPresentationService implements AuthenticationServiceFacade
Constructor and Description |
---|
AuthenticationServiceFacadeMockImpl() |
Modifier and Type | Method and Description |
---|---|
void |
authenticatePrincipal(String username,
List<String> authorities) |
AuthorizationDataVO |
authenticatePrincipal(String username,
String password)
Takes the username and password as provided and checks the validaty of
the credentials.
|
AuthorizationDataVO |
authenticatePrincipal(UserInfoVO userInfo)
This is a convenience method for making Rest and RPC interfaces of this service compatible.
|
List<String> |
getAuthorities() |
String |
getPrincipal() |
String |
getXSRFSessionToken()
Geneates a cross site request forgivery token, saves it at the current
session and returns the token to the frontend site.
|
boolean |
isPrincipalAuthenticated()
Checks if the current user is authenticated
|
public void authenticatePrincipal(String username, List<String> authorities)
authenticatePrincipal
in interface AuthenticationServiceFacade
public AuthorizationDataVO authenticatePrincipal(String username, String password)
authenticatePrincipal
in interface AuthenticationServiceFacade
username
- String containing the username of the principal to loginpassword
- String containing the password used to identify the current
userpublic List<String> getAuthorities()
getAuthorities
in interface AuthenticationServiceFacade
public String getPrincipal()
getPrincipal
in interface AuthenticationServiceFacade
public String getXSRFSessionToken() throws IOException
getXSRFSessionToken
in interface AuthenticationServiceFacade
IOException
public boolean isPrincipalAuthenticated()
isPrincipalAuthenticated
in interface AuthenticationServiceFacade
public AuthorizationDataVO authenticatePrincipal(UserInfoVO userInfo)
AuthenticationServiceFacade
authenticatePrincipal
in interface AuthenticationServiceFacade
Copyright © 2011-2015 Appverse. All Rights Reserved.