Class 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 Detail

      • AuthenticationService

        public AuthenticationService()
    • 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)