Interface AccessTokenService

    • Method Detail

      • login

        @POST
        @Path("login")
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response login()
        Returns an empty response bearing the X-Syncope-Token header value, in case of successful authentication. The provided value is a signed JSON Web Token.
        Returns:
        empty response bearing the X-Syncope-Token header value, in case of successful authentication
      • refresh

        @POST
        @Path("refresh")
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response refresh()
        Returns an empty response bearing the X-Syncope-Token header value, with extended lifetime. The provided value is a signed JSON Web Token.
        Returns:
        an empty response bearing the X-Syncope-Token header value, with extended lifetime
      • logout

        @POST
        @Path("logout")
        @Produces({"application/json","application/yaml","application/xml"})
        void logout()
        Invalidates the access token of the requesting user.
      • list

        @GET
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        PagedResult<AccessTokenTO> list​(@BeanParam
                                        AccessTokenQuery query)
        Returns a paged list of existing access tokens matching the given query.
        Parameters:
        query - query conditions
        Returns:
        paged list of existing access tokens matching the given query
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@PathParam("key")
                    String key)
        Invalidates the access token matching the provided key.
        Parameters:
        key - access token key