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
FieldsFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvalidates 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.voidlogout()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:AccessTokenServiceReturns 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:
loginin interfaceAccessTokenService- Returns:
- empty response bearing the X-Syncope-Token header value, in case of successful authentication
-
refresh
Description copied from interface:AccessTokenServiceReturns an empty response bearing the X-Syncope-Token header value, with extended lifetime. The provided value is a signed JSON Web Token.- Specified by:
refreshin interfaceAccessTokenService- Returns:
- an empty response bearing the X-Syncope-Token header value, with extended lifetime
-
logout
public void logout()Description copied from interface:AccessTokenServiceInvalidates the access token of the requesting user.- Specified by:
logoutin interfaceAccessTokenService
-
list
Description copied from interface:AccessTokenServiceReturns a paged list of existing access tokens matching the given query.- Specified by:
listin interfaceAccessTokenService- Parameters:
query- query conditions- Returns:
- paged list of existing access tokens matching the given query
-
delete
Description copied from interface:AccessTokenServiceInvalidates the access token matching the provided key.- Specified by:
deletein interfaceAccessTokenService- Parameters:
key- access token key
-