@Path(value="/soa/auth") public class AuthResource extends Object
| Constructor and Description |
|---|
AuthResource(AuthSpecHolder authSpecHolder) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
authorize(javax.servlet.http.HttpServletRequest request,
String username,
String email,
String domain,
String password) |
AuthStatus |
getAuthStatus(javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
unAuthorize(javax.servlet.http.HttpServletRequest request) |
@Inject public AuthResource(AuthSpecHolder authSpecHolder)
@POST
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response authorize(@Context
javax.servlet.http.HttpServletRequest request,
@FormParam(value="username")
String username,
@FormParam(value="email")
String email,
@FormParam(value="domain")
String domain,
@FormParam(value="password")
String password)
throws Exception
Exception@DELETE
public javax.ws.rs.core.Response unAuthorize(@Context
javax.servlet.http.HttpServletRequest request)
throws Exception
Exception@GET @Produces(value="application/json") public AuthStatus getAuthStatus(@Context javax.servlet.http.HttpServletRequest request) throws Exception
ExceptionCopyright © 2014–2016 Soabase. All rights reserved.