AuthConfig.java org::apache::iceberg::rest::auth::AuthConfig org::apache::iceberg::rest::auth /* *LicensedtotheApacheSoftwareFoundation(ASF)underone *ormorecontributorlicenseagreements.SeetheNOTICEfile *distributedwiththisworkforadditionalinformation *regardingcopyrightownership.TheASFlicensesthisfile *toyouundertheApacheLicense,Version2.0(the *"License");youmaynotusethisfileexceptincompliance *withtheLicense.YoumayobtainacopyoftheLicenseat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting, *softwaredistributedundertheLicenseisdistributedonan *"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANY *KIND,eitherexpressorimplied.SeetheLicenseforthe *specificlanguagegoverningpermissionsandlimitations *undertheLicense. */ packageorg.apache.iceberg.rest.auth; importjava.util.Map; importjavax.annotation.Nullable; importorg.apache.iceberg.rest.ResourcePaths; importorg.immutables.value.Value; @Value.Style(redactedMask="****") @SuppressWarnings("ImmutablesStyle") @Value.Immutable publicinterfaceAuthConfig{ @Nullable @Value.Redacted Stringtoken(); @Nullable StringtokenType(); @Nullable @Value.Redacted Stringcredential(); @Value.Default defaultStringscope(){ returnOAuth2Properties.CATALOG_SCOPE; } @Value.Lazy @Nullable defaultLongexpiresAtMillis(){ returnOAuth2Util.expiresAtMillis(token()); } @Value.Default defaultbooleankeepRefreshed(){ returntrue; } @Nullable @Value.Default defaultStringoauth2ServerUri(){ returnResourcePaths.tokens(); } Map<String,String>optionalOAuthParams(); staticImmutableAuthConfig.Builderbuilder(){ returnImmutableAuthConfig.builder(); } }