Class WebIdentityClientGrantsProvider

java.lang.Object
io.minio.credentials.AssumeRoleBaseProvider
io.minio.credentials.WebIdentityClientGrantsProvider
All Implemented Interfaces:
Provider
Direct Known Subclasses:
ClientGrantsProvider, WebIdentityProvider

public abstract class WebIdentityClientGrantsProvider extends AssumeRoleBaseProvider
Base class of WebIdentity and ClientGrants providers.
  • Field Details

    • MIN_DURATION_SECONDS

      public static final int MIN_DURATION_SECONDS
    • MAX_DURATION_SECONDS

      public static final int MAX_DURATION_SECONDS
    • stsEndpoint

      protected final HttpUrl stsEndpoint
    • durationSeconds

      protected final Integer durationSeconds
    • policy

      protected final String policy
    • roleArn

      protected final String roleArn
    • roleSessionName

      protected final String roleSessionName
  • Constructor Details

    • WebIdentityClientGrantsProvider

      public WebIdentityClientGrantsProvider(Supplier<Jwt> supplier, String stsEndpoint, Integer durationSeconds, String policy, String roleArn, String roleSessionName, OkHttpClient customHttpClient)
  • Method Details

    • getDurationSeconds

      protected int getDurationSeconds(int expiry)
    • getRequest

      protected Request getRequest()
      Specified by:
      getRequest in class AssumeRoleBaseProvider
    • newUrlBuilder

      protected abstract HttpUrl.Builder newUrlBuilder(Jwt jwt)