Package io.quarkus.oidc.client
Class OidcClientConfig
java.lang.Object
io.quarkus.oidc.common.runtime.OidcCommonConfig
io.quarkus.oidc.common.runtime.OidcClientCommonConfig
io.quarkus.oidc.client.OidcClientConfig
- All Implemented Interfaces:
OidcClientConfig,io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig,io.quarkus.oidc.common.runtime.config.OidcCommonConfig
@Deprecated(since="3.18",
forRemoval=true)
public class OidcClientConfig
extends io.quarkus.oidc.common.runtime.OidcClientCommonConfig
implements OidcClientConfig
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
io.quarkus.oidc.common.runtime.OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
io.quarkus.oidc.common.runtime.OidcCommonConfig.Proxy, io.quarkus.oidc.common.runtime.OidcCommonConfig.TlsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig
io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig.CredentialsNested classes/interfaces inherited from interface io.quarkus.oidc.common.runtime.config.OidcCommonConfig
io.quarkus.oidc.common.runtime.config.OidcCommonConfig.Proxy, io.quarkus.oidc.common.runtime.config.OidcCommonConfig.Tls -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time.Deprecated, for removal: This API element is subject to removal in a future version.Access token expiration period relative to the current time.Deprecated, for removal: This API element is subject to removal in a future version.Access token expiry time skew that can be added to the calculated token expiry time.Deprecated, for removal: This API element is subject to removal in a future version.List of access token audiencesbooleanDeprecated, for removal: This API element is subject to removal in a future version.If this client configuration is enabled.booleanDeprecated, for removal: This API element is subject to removal in a future version.Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Grant optionsDeprecated, for removal: This API element is subject to removal in a future version.Custom HTTP headers which have to be sent to the token endpointDeprecated, for removal: This API element is subject to removal in a future version.A unique OIDC client identifier.Deprecated, for removal: This API element is subject to removal in a future version.Refresh token time skew.Deprecated, for removal: This API element is subject to removal in a future version.List of access token scopesFields inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
clientId, clientName, credentials, revokePath, tokenPathFields inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, maxPoolSize, proxy, registrationPath, tls, useBlockingDnsLookup -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.OidcClientConfig(OidcClientConfig mapping) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time.Deprecated, for removal: This API element is subject to removal in a future version.Access token expiration period relative to the current time.Deprecated, for removal: This API element is subject to removal in a future version.Access token expiry time skew that can be added to the calculated token expiry time.audience()Deprecated, for removal: This API element is subject to removal in a future version.List of access token audiencesbooleanDeprecated, for removal: This API element is subject to removal in a future version.If this client configuration is enabled.booleanDeprecated, for removal: This API element is subject to removal in a future version.Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used.getGrant()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getId()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.grant()Deprecated, for removal: This API element is subject to removal in a future version.OIDC Client grant config group.Deprecated, for removal: This API element is subject to removal in a future version.Grant optionsheaders()Deprecated, for removal: This API element is subject to removal in a future version.Custom HTTP headers which have to be sent to the token endpointid()Deprecated, for removal: This API element is subject to removal in a future version.A unique OIDC client identifier.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Token refresh interval.Deprecated, for removal: This API element is subject to removal in a future version.Refresh token time skew.scopes()Deprecated, for removal: This API element is subject to removal in a future version.List of access token scopesvoidsetAbsoluteExpiresIn(boolean absoluteExpiresIn) Deprecated, for removal: This API element is subject to removal in a future version.voidsetClientEnabled(boolean clientEnabled) Deprecated, for removal: This API element is subject to removal in a future version.voidsetGrant(OidcClientConfig.Grant grant) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetHeaders(Map<String, String> headers) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetRefreshTokenTimeSkew(Duration refreshTokenTimeSkew) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.quarkus.oidc.common.runtime.OidcClientCommonConfig
clientId, clientName, credentials, getClientId, getClientName, getCredentials, getRevokePath, getTokenPath, revokePath, setClientId, setClientName, setCredentials, setRevokePath, setTokenPath, tokenPathMethods inherited from class io.quarkus.oidc.common.runtime.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, getAuthServerUrl, getConnectionDelay, getConnectionTimeout, getDiscoveryEnabled, getMaxPoolSize, getProxy, getRegistrationPath, isDiscoveryEnabled, maxPoolSize, proxy, registrationPath, setAuthServerUrl, setConnectionDelay, setConnectionTimeout, setDiscoveryEnabled, setDiscoveryEnabled, setMaxPoolSize, setProxy, setRegistrationPath, tls, useBlockingDnsLookupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.oidc.common.runtime.config.OidcClientCommonConfig
clientId, clientName, credentials, revokePath, tokenPathMethods inherited from interface io.quarkus.oidc.common.runtime.config.OidcCommonConfig
authServerUrl, connectionDelay, connectionRetryCount, connectionTimeout, discoveryEnabled, followRedirects, maxPoolSize, proxy, registrationPath, tls, useBlockingDnsLookup
-
Field Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version.A unique OIDC client identifier. It must be set when OIDC clients are created dynamically and is optional in all other cases. -
clientEnabled
public boolean clientEnabledDeprecated, for removal: This API element is subject to removal in a future version.If this client configuration is enabled. -
scopes
Deprecated, for removal: This API element is subject to removal in a future version.List of access token scopes -
audience
Deprecated, for removal: This API element is subject to removal in a future version.List of access token audiences -
refreshTokenTimeSkew
Deprecated, for removal: This API element is subject to removal in a future version.Refresh token time skew. If this property is enabled then the configured duration is converted to seconds and is added to the current time when checking whether the access token should be refreshed. If the sum is greater than this access token's expiration time then a refresh is going to happen. -
accessTokenExpiresIn
Deprecated, for removal: This API element is subject to removal in a future version.Access token expiration period relative to the current time. This property is only checked when an access token grant response does not include an access token expiration property. -
accessTokenExpirySkew
Deprecated, for removal: This API element is subject to removal in a future version.Access token expiry time skew that can be added to the calculated token expiry time. -
absoluteExpiresIn
public boolean absoluteExpiresInDeprecated, for removal: This API element is subject to removal in a future version.If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time. -
grant
Deprecated, for removal: This API element is subject to removal in a future version. -
grantOptions
Deprecated, for removal: This API element is subject to removal in a future version.Grant options -
earlyTokensAcquisition
public boolean earlyTokensAcquisitionDeprecated, for removal: This API element is subject to removal in a future version.Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used. This property should be disabled if the access token may expire before it is used for the first time and no refresh token is available. -
headers
Deprecated, for removal: This API element is subject to removal in a future version.Custom HTTP headers which have to be sent to the token endpoint
-
-
Constructor Details
-
OidcClientConfig
public OidcClientConfig()Deprecated, for removal: This API element is subject to removal in a future version. -
OidcClientConfig
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigA unique OIDC client identifier. It must be set when OIDC clients are created dynamically and is optional in all other cases.- Specified by:
idin interfaceOidcClientConfig
-
clientEnabled
public boolean clientEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigIf this client configuration is enabled.- Specified by:
clientEnabledin interfaceOidcClientConfig
-
scopes
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigList of access token scopes- Specified by:
scopesin interfaceOidcClientConfig
-
audience
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigList of access token audiences- Specified by:
audiencein interfaceOidcClientConfig
-
refreshTokenTimeSkew
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigRefresh token time skew. If this property is enabled then the configured duration is converted to seconds and is added to the current time when checking whether the access token should be refreshed. If the sum is greater than this access token's expiration time then a refresh is going to happen.- Specified by:
refreshTokenTimeSkewin interfaceOidcClientConfig
-
accessTokenExpiresIn
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigAccess token expiration period relative to the current time. This property is only checked when an access token grant response does not include an access token expiration property.- Specified by:
accessTokenExpiresInin interfaceOidcClientConfig
-
accessTokenExpirySkew
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigAccess token expiry time skew that can be added to the calculated token expiry time.- Specified by:
accessTokenExpirySkewin interfaceOidcClientConfig
-
absoluteExpiresIn
public boolean absoluteExpiresIn()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigIf the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time.- Specified by:
absoluteExpiresInin interfaceOidcClientConfig
-
grant
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigOIDC Client grant config group.- Specified by:
grantin interfaceOidcClientConfig
-
grantOptions
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigGrant options- Specified by:
grantOptionsin interfaceOidcClientConfig
-
earlyTokensAcquisition
public boolean earlyTokensAcquisition()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigRequires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used. This property should be disabled if the access token may expire before it is used for the first time and no refresh token is available.- Specified by:
earlyTokensAcquisitionin interfaceOidcClientConfig
-
headers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigCustom HTTP headers which have to be sent to the token endpoint- Specified by:
headersin interfaceOidcClientConfig
-
refreshInterval
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OidcClientConfigToken refresh interval. By default, OIDC client refreshes the token during the current request, when it detects that it has expired, or nearly expired if theOidcClientConfig.refreshTokenTimeSkew()is configured. But, when this property is configured, OIDC client can refresh the token asynchronously in the configured interval. This property is only effective with OIDC client filters and otherAbstractTokensProducerextensions, but not when you use theOidcClient.getTokens()API directly.- Specified by:
refreshIntervalin interfaceOidcClientConfig
-
getId
Deprecated, for removal: This API element is subject to removal in a future version. -
setId
Deprecated, for removal: This API element is subject to removal in a future version. -
getGrantOptions
Deprecated, for removal: This API element is subject to removal in a future version. -
setGrantOptions
Deprecated, for removal: This API element is subject to removal in a future version. -
isClientEnabled
public boolean isClientEnabled()Deprecated, for removal: This API element is subject to removal in a future version. -
setClientEnabled
public void setClientEnabled(boolean clientEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
getScopes
Deprecated, for removal: This API element is subject to removal in a future version. -
setScopes
Deprecated, for removal: This API element is subject to removal in a future version. -
getRefreshTokenTimeSkew
Deprecated, for removal: This API element is subject to removal in a future version. -
setRefreshTokenTimeSkew
Deprecated, for removal: This API element is subject to removal in a future version. -
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version. -
setHeaders
Deprecated, for removal: This API element is subject to removal in a future version. -
isAbsoluteExpiresIn
public boolean isAbsoluteExpiresIn()Deprecated, for removal: This API element is subject to removal in a future version. -
setAbsoluteExpiresIn
public void setAbsoluteExpiresIn(boolean absoluteExpiresIn) Deprecated, for removal: This API element is subject to removal in a future version. -
setGrant
Deprecated, for removal: This API element is subject to removal in a future version. -
getGrant
Deprecated, for removal: This API element is subject to removal in a future version.
-
OidcClientConfigwith theOidcClientConfigBuilderfor example, you can use theOidcClientConfig.builder()method.