Class AccessTokenServiceImpl

java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.AccessTokenServiceImpl
All Implemented Interfaces:
AccessTokenService, JAXRSService

@Service public class AccessTokenServiceImpl extends AbstractService implements AccessTokenService
  • Field Details

  • Constructor Details

    • AccessTokenServiceImpl

      public AccessTokenServiceImpl(AccessTokenLogic logic)
  • Method Details

    • login

      public Response login()
      Description copied from interface: AccessTokenService
      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.
      Specified by:
      login in interface AccessTokenService
      Returns:
      empty response bearing the X-Syncope-Token header value, in case of successful authentication
    • refresh

      public Response refresh()
      Description copied from interface: AccessTokenService
      Returns an empty response bearing the X-Syncope-Token header value, with extended lifetime. The provided value is a signed JSON Web Token.
      Specified by:
      refresh in interface AccessTokenService
      Returns:
      an empty response bearing the X-Syncope-Token header value, with extended lifetime
    • logout

      public void logout()
      Description copied from interface: AccessTokenService
      Invalidates the access token of the requesting user.
      Specified by:
      logout in interface AccessTokenService
    • list

      Description copied from interface: AccessTokenService
      Returns a paged list of existing access tokens matching the given query.
      Specified by:
      list in interface AccessTokenService
      Parameters:
      query - query conditions
      Returns:
      paged list of existing access tokens matching the given query
    • delete

      public void delete(String key)
      Description copied from interface: AccessTokenService
      Invalidates the access token matching the provided key.
      Specified by:
      delete in interface AccessTokenService
      Parameters:
      key - access token key