Class OAuth2TokenRequester.AuthContext

java.lang.Object
ch.ivyteam.ivy.rest.client.oauth2.OAuth2TokenRequester.AuthContext
Enclosing interface:
OAuth2TokenRequester

public static class OAuth2TokenRequester.AuthContext extends Object
The authentication context to be used to fire an 'accessToken' request.
Since:
9.2
API:
This is a public API.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Current feature configuration provided by Rest Client properties or programmatic features.
    final javax.ws.rs.client.WebTarget
    JAX-RS client pre-configured to call the accessToken URI defined by OAuth2UriProvider.getTokenUri()
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Field Details

    • target

      public final javax.ws.rs.client.WebTarget target
      JAX-RS client pre-configured to call the accessToken URI defined by OAuth2UriProvider.getTokenUri()
      API:
      This public API is available in Java.
    • config

      public final FeatureConfig config
      Current feature configuration provided by Rest Client properties or programmatic features.
      API:
      This public API is available in Java.
  • Method Details

    • authCode

      public Optional<String> authCode()
      Returns:
      User access code query parameter obtained from an OAuth2 '/auth' user consent request. Or Optional.empty() when an implicit grant is being implemented.
      API:
      This public API is available in Java.