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
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invalidates the access token matching the provided key.list
(AccessTokenQuery query) Returns a paged list of existing access tokens matching the given query.login()
Returns an empty response bearing the X-Syncope-Token header value, in case of successful authentication.void
logout()
Invalidates the access token of the requesting user.refresh()
Returns an empty response bearing the X-Syncope-Token header value, with extended lifetime.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
-
Constructor Details
-
AccessTokenServiceImpl
-
-
Method Details
-
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 interfaceAccessTokenService
- Returns:
- empty response bearing the X-Syncope-Token header value, in case of successful authentication
-
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 interfaceAccessTokenService
- 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 interfaceAccessTokenService
-
list
Description copied from interface:AccessTokenService
Returns a paged list of existing access tokens matching the given query.- Specified by:
list
in interfaceAccessTokenService
- Parameters:
query
- query conditions- Returns:
- paged list of existing access tokens matching the given query
-
delete
Description copied from interface:AccessTokenService
Invalidates the access token matching the provided key.- Specified by:
delete
in interfaceAccessTokenService
- Parameters:
key
- access token key
-