@Service(value="authenticationServiceFacade") @Path(value="authenticationServiceFacade") @Consumes(value="application/json") @Produces(value="application/json") public class AuthenticationServiceFacadeImpl extends AbstractPresentationService implements AuthenticationServiceFacade
Constructor and Description |
---|
AuthenticationServiceFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
authenticatePrincipal(String principal,
List<String> credentials) |
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 by evaluating the
SecurityContext
|
public void authenticatePrincipal(String principal, List<String> credentials)
authenticatePrincipal
in interface AuthenticationServiceFacade
@POST @Path(value="authenticatePrincipal") @Produces(value="application/json") public AuthorizationDataVO authenticatePrincipal(UserInfoVO userInfo)
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
user@POST @Path(value="getAuthorities") @Produces(value="application/json") public List<String> getAuthorities()
getAuthorities
in interface AuthenticationServiceFacade
@POST @Path(value="getPrincipal") @Produces(value="application/json") public String getPrincipal()
getPrincipal
in interface AuthenticationServiceFacade
@POST @Path(value="getXSRFSessionToken") @Produces(value="application/json") public String getXSRFSessionToken() throws IOException
getXSRFSessionToken
in interface AuthenticationServiceFacade
IOException
@POST @Path(value="isPrincipalAuthenticated") @Produces(value="application/json") public boolean isPrincipalAuthenticated()
isPrincipalAuthenticated
in interface AuthenticationServiceFacade
Copyright © 2011-2015 Appverse. All Rights Reserved.