Class AuthenticationServiceRestClient
- java.lang.Object
-
- org.craftercms.commons.rest.AbstractRestClientBase
-
- org.craftercms.profile.services.impl.AbstractProfileRestClientBase
-
- org.craftercms.profile.services.impl.AuthenticationServiceRestClient
-
- All Implemented Interfaces:
AuthenticationService
public class AuthenticationServiceRestClient extends AbstractProfileRestClientBase implements AuthenticationService
REST client implementation ofAuthenticationService
.- Author:
- avasquez
-
-
Field Summary
-
Fields inherited from class org.craftercms.profile.services.impl.AbstractProfileRestClientBase
accessTokenIdResolver
-
-
Constructor Summary
Constructors Constructor Description AuthenticationServiceRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ticket
authenticate(String tenantName, String username, String password)
PersistentLogin
createPersistentLogin(String profileId)
Ticket
createTicket(String profileId)
void
deletePersistentLogin(String loginId)
PersistentLogin
getPersistentLogin(String loginId)
Ticket
getTicket(String ticketId)
void
invalidateTicket(String ticketId)
PersistentLogin
refreshPersistentLoginToken(String loginId)
-
Methods inherited from class org.craftercms.profile.services.impl.AbstractProfileRestClientBase
createBaseParams, doGetForObject, doGetForObject, doGetForObject, doGetForObject, doPostForLocation, doPostForObject, doPostForUpload, getAbsoluteUrlWithAccessTokenIdParam, handleException, handleRestServiceException, setAccessTokenIdResolver
-
-
-
-
Method Detail
-
authenticate
public Ticket authenticate(String tenantName, String username, String password) throws ProfileException
- Specified by:
authenticate
in interfaceAuthenticationService
- Throws:
ProfileException
-
createTicket
public Ticket createTicket(String profileId) throws ProfileException
- Specified by:
createTicket
in interfaceAuthenticationService
- Throws:
ProfileException
-
getTicket
public Ticket getTicket(String ticketId) throws ProfileException
- Specified by:
getTicket
in interfaceAuthenticationService
- Throws:
ProfileException
-
invalidateTicket
public void invalidateTicket(String ticketId) throws ProfileException
- Specified by:
invalidateTicket
in interfaceAuthenticationService
- Throws:
ProfileException
-
createPersistentLogin
public PersistentLogin createPersistentLogin(String profileId) throws ProfileException
- Specified by:
createPersistentLogin
in interfaceAuthenticationService
- Throws:
ProfileException
-
getPersistentLogin
public PersistentLogin getPersistentLogin(String loginId) throws ProfileException
- Specified by:
getPersistentLogin
in interfaceAuthenticationService
- Throws:
ProfileException
-
refreshPersistentLoginToken
public PersistentLogin refreshPersistentLoginToken(String loginId) throws ProfileException
- Specified by:
refreshPersistentLoginToken
in interfaceAuthenticationService
- Throws:
ProfileException
-
deletePersistentLogin
public void deletePersistentLogin(String loginId) throws ProfileException
- Specified by:
deletePersistentLogin
in interfaceAuthenticationService
- Throws:
ProfileException
-
-