Class AuthResourceImpl
- java.lang.Object
-
- com.artisol.teneo.studio.client.resources.AbstractResource
-
- com.artisol.teneo.studio.client.resources.AuthResourceImpl
-
- All Implemented Interfaces:
com.artisol.teneo.studio.api.resources.AuthResource
public class AuthResourceImpl extends AbstractResource implements com.artisol.teneo.studio.api.resources.AuthResource
-
-
Field Summary
-
Fields inherited from interface com.artisol.teneo.studio.api.resources.AuthResource
GET_LOGIN_DELEGATED_NOTIFICATION_PATH, GET_LOGIN_DELEGATED_NOTIFICATION_SUMMARY, GET_LOGIN_DELEGATED_PATH, GET_LOGIN_DELEGATED_SUMMARY, GET_USER_INFO_PATH, GET_USER_INFO_SUMMARY, PATH, POST_LOGIN_PATH, POST_LOGIN_SUMMARY, POST_LOGOUT_PATH, POST_LOGOUT_SUMMARY
-
-
Constructor Summary
Constructors Constructor Description AuthResourceImpl(javax.ws.rs.client.WebTarget webTarget, AuthorizationFilter authorizationFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDelegatedLoginNotification(String token)
com.artisol.teneo.studio.api.models.CurrentUser
getUserInfo()
String
login(com.artisol.teneo.studio.api.models.Login login)
void
logout()
String
startDelegatedLogin(String token)
-
-
-
Constructor Detail
-
AuthResourceImpl
public AuthResourceImpl(javax.ws.rs.client.WebTarget webTarget, AuthorizationFilter authorizationFilter)
-
-
Method Detail
-
login
public String login(com.artisol.teneo.studio.api.models.Login login) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
login
in interfacecom.artisol.teneo.studio.api.resources.AuthResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
logout
public void logout() throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
logout
in interfacecom.artisol.teneo.studio.api.resources.AuthResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
startDelegatedLogin
public String startDelegatedLogin(String token) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
startDelegatedLogin
in interfacecom.artisol.teneo.studio.api.resources.AuthResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getDelegatedLoginNotification
public String getDelegatedLoginNotification(String token) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getDelegatedLoginNotification
in interfacecom.artisol.teneo.studio.api.resources.AuthResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getUserInfo
public com.artisol.teneo.studio.api.models.CurrentUser getUserInfo() throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getUserInfo
in interfacecom.artisol.teneo.studio.api.resources.AuthResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
-