Class IdcsRoleMapperProviderBase.AppToken

java.lang.Object
io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.AppToken
Enclosing class:
IdcsRoleMapperProviderBase

protected static class IdcsRoleMapperProviderBase.AppToken extends Object
Reactive token for app access to IDCS.
  • Constructor Details

    • AppToken

      protected AppToken(WebClient webClient, URI tokenEndpointUri, Duration tokenRefreshSkew)
      Create an application token cache.
      Parameters:
      webClient - web client to request tokens
      tokenEndpointUri - token endpoint URI
      tokenRefreshSkew - token refresh skew
    • AppToken

      protected AppToken(WebClient webClient, URI tokenEndpointUri, Duration tokenRefreshSkew, String clientId, String clientSecret)
      Create an application token cache with client credentials.
      Parameters:
      webClient - web client to request tokens
      tokenEndpointUri - token endpoint URI
      tokenRefreshSkew - token refresh skew
      clientId - client ID
      clientSecret - client secret
  • Method Details

    • getToken

      protected Optional<String> getToken(RoleMapTracing tracing)
      Return a cached application token, requesting a new token when needed.
      Parameters:
      tracing - role mapper tracing
      Returns:
      token content