Class OAuth2Rest
- java.lang.Object
-
- com.artisol.teneo.manager.client.rest.AbstractRest
-
- com.artisol.teneo.manager.client.rest.OAuth2Rest
-
- All Implemented Interfaces:
com.artisol.teneo.manager.api.rest.OAuth2
public class OAuth2Rest extends AbstractRest implements com.artisol.teneo.manager.api.rest.OAuth2
-
-
Field Summary
-
Fields inherited from interface com.artisol.teneo.manager.api.rest.OAuth2
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CLIENTID, DELETE_CLIENT_PATH, DELETE_CLIENT_SUMMARY, ERROR, ERROR_DESCRIPTION, EXPIRES_IN, GET_ACCESS_TOKEN_INFO_PATH, GET_ACCESS_TOKEN_INFO_PRODUCES, GET_ACCESS_TOKEN_INFO_SUMMARY, GET_ACCESS_TOKENS_PATH, GET_ACCESS_TOKENS_PRODUCES, GET_ACCESS_TOKENS_SUMMARY, GET_CLIENT_PATH, GET_CLIENT_PRODUCES, GET_CLIENT_SUMMARY, GET_CLIENTS_PATH, GET_CLIENTS_PRODUCES, GET_CLIENTS_SUMMARY, GET_DELEGATED_NOTIFICATION_PATH, GET_DELEGATED_NOTIFICATION_PRODUCES, GET_DELEGATED_NOTIFICATION_SUMMARY, GET_DELEGATED_SAML2_METADATA_PATH, GET_DELEGATED_SAML2_METADATA_PRODUCES, GET_DELEGATED_SAML2_METADATA_SUMMARY, GET_DELEGATED_SAML2_PATH, GET_DELEGATED_SAML2_PRODUCES, GET_DELEGATED_START_LOGIN_URL_PATH, GET_DELEGATED_START_LOGIN_URL_PRODUCES, GET_DELEGATED_START_LOGIN_URL_SUMMARY, GRANT_TYPE, PASSWORD, PATH, POST_AUTH_CONSUMES, POST_AUTH_PATH, POST_AUTH_PRODUCES, POST_CLIENT_CONSUMES, POST_CLIENT_PATH, POST_CLIENT_PRODUCES, POST_CLIENT_SUMMARY, POST_DELEGATED_SAML2_PATH, POST_DELEGATED_SAML2_PRODUCES, POST_REVOKE_CONSUMES, POST_REVOKE_PATH, POST_REVOKE_SUMMARY, POST_TOKEN_CONSUMES, POST_TOKEN_DESCRIPTION, POST_TOKEN_PATH, POST_TOKEN_PRODUCES, POST_TOKEN_SUMMARY, PUT_CLIENT_CONSUMES, PUT_CLIENT_PATH, PUT_CLIENT_PRODUCES, PUT_CLIENT_SUMMARY, REFRESH_TOKEN, REQUEST_RETRY_COUNT, REQUEST_RETRY_DELAY, RESPONSE_TYPE, STATE, TOKEN, USERNAME
-
-
Constructor Summary
Constructors Constructor Description OAuth2Rest(javax.ws.rs.client.WebTarget pWebTarget, org.slf4j.Marker pMarker)
Constructs aOAuth2Rest
object used to call the OAuth2 interface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client
createClient(com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client pClient)
void
deleteClient(UUID pClientId)
com.artisol.teneo.manager.api.entity.oauth2.AccessToken
getAccessTokenInfo()
List<com.artisol.teneo.manager.api.entity.oauth2.AccessToken>
getAccessTokens()
com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client
getClient(UUID pClientId)
List<com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client>
getClients()
com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client
updateClient(UUID pClientId, com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client pClient)
-
-
-
Constructor Detail
-
OAuth2Rest
public OAuth2Rest(javax.ws.rs.client.WebTarget pWebTarget, org.slf4j.Marker pMarker)
Constructs aOAuth2Rest
object used to call the OAuth2 interface- Parameters:
pWebTarget
- AWebTarget
instance properly configuredpMarker
- AMarker
to fine tuning logging
-
-
Method Detail
-
getAccessTokens
public List<com.artisol.teneo.manager.api.entity.oauth2.AccessToken> getAccessTokens() throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
getAccessTokens
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
getAccessTokenInfo
public com.artisol.teneo.manager.api.entity.oauth2.AccessToken getAccessTokenInfo() throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
getAccessTokenInfo
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
getClients
public List<com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client> getClients() throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
getClients
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
getClient
public com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client getClient(UUID pClientId) throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
getClient
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
createClient
public com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client createClient(com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client pClient) throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
createClient
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
updateClient
public com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client updateClient(UUID pClientId, com.artisol.teneo.manager.api.entity.oauth2.OAuth2Client pClient) throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
updateClient
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
deleteClient
public void deleteClient(UUID pClientId) throws com.artisol.teneo.manager.api.exception.RestException
- Specified by:
deleteClient
in interfacecom.artisol.teneo.manager.api.rest.OAuth2
- Throws:
com.artisol.teneo.manager.api.exception.RestException
-
-