Class AuthenticationService
- java.lang.Object
-
- de.xima.fc.api.rest.pub.impl.generic.services.auth.AuthenticationService
-
@Produces({"application/vnd.xima.fc.api.rest.public+json; version=1.0; charset=utf-8","application/json; charset=utf-8"}) @Path("/auth/{clientName}/") public class AuthenticationService extends Object
Service that provides authentication endpoints- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description AuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
authenticate(@NotBlank String userName, @NotBlank String password)
javax.ws.rs.core.Response
refresh(@NotBlank String refreshToken)
javax.ws.rs.core.Response
revoke(@NotBlank String refreshToken)
-
-
-
Method Detail
-
authenticate
@POST @Path("/token") @Consumes("application/x-www-form-urlencoded") @Produces({"application/vnd.xima.fc.api.rest.public+json; version=1.0; charset=utf-8","application/json; charset=utf-8"}) public javax.ws.rs.core.Response authenticate(@FormParam("username") @NotBlank @NotBlank String userName, @FormParam("password") @NotBlank @NotBlank String password)
-
revoke
@POST @Path("/token/revoke") @Consumes("application/x-www-form-urlencoded") @Produces({"application/vnd.xima.fc.api.rest.public+json; version=1.0; charset=utf-8","application/json; charset=utf-8"}) public javax.ws.rs.core.Response revoke(@FormParam("refresh_token") @NotBlank @NotBlank String refreshToken)
-
refresh
@POST @Path("/token/refresh") @Consumes("application/x-www-form-urlencoded") @Produces({"application/vnd.xima.fc.api.rest.public+json; version=1.0; charset=utf-8","application/json; charset=utf-8"}) public javax.ws.rs.core.Response refresh(@FormParam("refresh_token") @NotBlank @NotBlank String refreshToken)
-
-