Top Description Fields Constructors Methods
org.keycloak.representations.adapters.config

public Class AdapterConfig

extends BaseAdapterConfig
implements AdapterHttpClientConfig
Class Inheritance
All Implemented Interfaces
org.keycloak.representations.adapters.config.AdapterHttpClientConfig
Annotations
@JsonPropertyOrder:realm, realm-public-key, auth-server-url, ssl-required, resource, public-client, credentials, use-resource-role-mappings, enable-cors, cors-max-age, cors-allowed-methods, cors-exposed-headers, expose-token, bearer-only, autodetect-bearer-only, connection-pool-size, socket-timeout-millis, connection-ttl-millis, connection-timeout-millis, allow-any-hostname, disable-trust-manager, truststore, truststore-password, client-keystore, client-keystore-password, client-key-password, always-refresh-token, register-node-at-startup, register-node-period, token-store, adapter-state-cookie-path, principal-attribute, proxy-url, turn-off-change-session-id-on-login, token-minimum-time-to-live, min-time-between-jwks-requests, public-key-cache-ttl, policy-enforcer, ignore-oauth-query-parameter, verify-token-audience
Imports
com.fasterxml.jackson.annotation.JsonIgnore, .JsonProperty, .JsonPropertyOrder

Configuration for Java based adapters
Authors
Bill Burke, Brad Culley, John D. Ament
Version
$Revision: 1 $

Field Summary

Modifier and TypeField and Description
protected boolean
protected boolean
protected String
protected String
protected String
protected int
protected long
protected long
protected boolean
protected boolean
protected int
protected boolean
protected PolicyEnforcerConfig
protected String
protected String
proxyUrl

The Proxy url to use for requests to the auth-server, configurable via the adapter config property proxy-url.

protected int
protected boolean
protected int
protected long
protected String
protected int
protected String
protected String
protected String
protected Boolean
protected boolean
Inherited from org.keycloak.representations.adapters.config.BaseAdapterConfig:
autodetectBearerOnlybearerOnlycorscorsAllowedHeaderscorsAllowedMethodscorsExposedHeaderscorsMaxAgecredentialsenableBasicAuthexposeTokenpublicClientredirectRewriteRulesresourceuseResourceRoleMappings

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public String
public String
public int
public long
getConnectionTimeout()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionTimeout.

Returns timeout for establishing the connection with the remote host in milliseconds.
public long
public int
public PolicyEnforcerConfig
public String
public String
public int
public String
public int
public long
getSocketTimeout()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getSocketTimeout.

Returns timeout for socket waiting for data in milliseconds.
public String
public int
public String
public String
public String
public Boolean
public boolean
isAllowAnyHostname()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isAllowAnyHostname.

Returns boolean flag whether any hostname verification is done on the server's certificate, true means that verification is not done.
public boolean
public boolean
isDisableTrustManager()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isDisableTrustManager.

Returns boolean flag whether any trust management and hostname verification is done.
public boolean
public boolean
public boolean
public boolean
public void
setAllowAnyHostname(boolean allowAnyHostname)

public void
setAlwaysRefreshToken(boolean alwaysRefreshToken)

public void
setClientKeyPassword(String clientKeyPassword)

public void
setClientKeystore(String clientKeystore)

public void
setClientKeystorePassword(String clientKeystorePassword)

public void
setConnectionPoolSize(int connectionPoolSize)

public void
setConnectionTimeout(long connectionTimeout)

public void
setConnectionTTL(long connectionTTL)

public void
setDisableTrustManager(boolean disableTrustManager)

public void
setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter)

public void
setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests)

public void
setPkce(boolean pkce)

public void
public void
setPrincipalAttribute(String principalAttribute)

public void
setProxyUrl(String proxyUrl)

public void
setPublicKeyCacheTtl(int publicKeyCacheTtl)

public void
setRegisterNodeAtStartup(boolean registerNodeAtStartup)

public void
setRegisterNodePeriod(int registerNodePeriod)

public void
setSocketTimeout(long socketTimeout)

public void
setTokenCookiePath(String tokenCookiePath)

public void
setTokenMinimumTimeToLive(final int tokenMinimumTimeToLive)

public void
setTokenStore(String tokenStore)

public void
setTruststore(String truststore)

public void
setTruststorePassword(String truststorePassword)

public void
setTurnOffChangeSessionIdOnLogin(Boolean turnOffChangeSessionIdOnLogin)

public void
setVerifyTokenAudience(boolean verifyTokenAudience)

Inherited from org.keycloak.representations.adapters.config.BaseAdapterConfig:
getCorsAllowedHeadersgetCorsAllowedMethodsgetCorsExposedHeadersgetCorsMaxAgegetCredentialsgetRedirectRewriteRulesgetResourceisAutodetectBearerOnlyisBearerOnlyisCorsisEnableBasicAuthisExposeTokenisPublicClientisUseResourceRoleMappingssetAutodetectBearerOnlysetBearerOnlysetCorssetCorsAllowedHeaderssetCorsAllowedMethodssetCorsExposedHeaderssetCorsMaxAgesetCredentialssetEnableBasicAuthsetExposeTokensetPublicClientsetRedirectRewriteRulessetResourcesetUseResourceRoleMappings

Field Detail

allowAnyHostnameback to summary
protected boolean allowAnyHostname
Annotations
@JsonProperty:allow-any-hostname
alwaysRefreshTokenback to summary
protected boolean alwaysRefreshToken
Annotations
@JsonProperty:always-refresh-token
clientKeyPasswordback to summary
protected String clientKeyPassword
Annotations
@JsonProperty:client-key-password
clientKeystoreback to summary
protected String clientKeystore
Annotations
@JsonProperty:client-keystore
clientKeystorePasswordback to summary
protected String clientKeystorePassword
Annotations
@JsonProperty:client-keystore-password
connectionPoolSizeback to summary
protected int connectionPoolSize
Annotations
@JsonProperty:connection-pool-size
connectionTimeoutback to summary
protected long connectionTimeout
Annotations
@JsonProperty:connection-timeout-millis
connectionTTLback to summary
protected long connectionTTL
Annotations
@JsonProperty:connection-ttl-millis
disableTrustManagerback to summary
protected boolean disableTrustManager
Annotations
@JsonProperty:disable-trust-manager
ignoreOAuthQueryParameterback to summary
protected boolean ignoreOAuthQueryParameter
Annotations
@JsonProperty:ignore-oauth-query-parameter
minTimeBetweenJwksRequestsback to summary
protected int minTimeBetweenJwksRequests
Annotations
@JsonProperty:min-time-between-jwks-requests
pkceback to summary
protected boolean pkce
Annotations
@JsonProperty:enable-pkce
policyEnforcerConfigback to summary
protected PolicyEnforcerConfig policyEnforcerConfig
Annotations
@JsonProperty:policy-enforcer
principalAttributeback to summary
protected String principalAttribute
Annotations
@JsonProperty:principal-attribute
proxyUrlback to summary
protected String proxyUrl

The Proxy url to use for requests to the auth-server, configurable via the adapter config property proxy-url.

Annotations
@JsonProperty:proxy-url
publicKeyCacheTtlback to summary
protected int publicKeyCacheTtl
Annotations
@JsonProperty:public-key-cache-ttl
registerNodeAtStartupback to summary
protected boolean registerNodeAtStartup
Annotations
@JsonProperty:register-node-at-startup
registerNodePeriodback to summary
protected int registerNodePeriod
Annotations
@JsonProperty:register-node-period
socketTimeoutback to summary
protected long socketTimeout
Annotations
@JsonProperty:socket-timeout-millis
tokenCookiePathback to summary
protected String tokenCookiePath
Annotations
@JsonProperty:adapter-state-cookie-path
tokenMinimumTimeToLiveback to summary
protected int tokenMinimumTimeToLive
Annotations
@JsonProperty:token-minimum-time-to-live
tokenStoreback to summary
protected String tokenStore
Annotations
@JsonProperty:token-store
truststoreback to summary
protected String truststore
Annotations
@JsonProperty:truststore
truststorePasswordback to summary
protected String truststorePassword
Annotations
@JsonProperty:truststore-password
turnOffChangeSessionIdOnLoginback to summary
protected Boolean turnOffChangeSessionIdOnLogin
Annotations
@JsonProperty:turn-off-change-session-id-on-login
verifyTokenAudienceback to summary
protected boolean verifyTokenAudience
Annotations
@JsonProperty:verify-token-audience

Constructor Detail

AdapterConfigback to summary
public AdapterConfig()

Method Detail

getClientKeyPasswordback to summary
public String getClientKeyPassword()
getClientKeystoreback to summary
public String getClientKeystore()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getClientKeystore.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getClientKeystore.

Returns keystore with client keys.

Annotations
@Override
getClientKeystorePasswordback to summary
public String getClientKeystorePassword()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getClientKeystorePassword.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getClientKeystorePassword.

Returns keystore password.

Annotations
@Override
getConnectionPoolSizeback to summary
public int getConnectionPoolSize()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionPoolSize.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionPoolSize.

Returns size of connection pool.

Annotations
@Override
getConnectionTimeoutback to summary
public long getConnectionTimeout()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionTimeout.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionTimeout.

Returns timeout for establishing the connection with the remote host in milliseconds.

getConnectionTTLback to summary
public long getConnectionTTL()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionTTL.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getConnectionTTL.

Returns the connection time-to-live

Annotations
@Override
getMinTimeBetweenJwksRequestsback to summary
public int getMinTimeBetweenJwksRequests()
getPolicyEnforcerConfigback to summary
public PolicyEnforcerConfig getPolicyEnforcerConfig()
getPrincipalAttributeback to summary
public String getPrincipalAttribute()
getProxyUrlback to summary
public String getProxyUrl()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getProxyUrl.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getProxyUrl.

Returns URL of HTTP proxy.

Annotations
@Override
getPublicKeyCacheTtlback to summary
public int getPublicKeyCacheTtl()
getRealmInfoUrlback to summary
public String getRealmInfoUrl()
Annotations
@JsonIgnore
getRegisterNodePeriodback to summary
public int getRegisterNodePeriod()
getSocketTimeoutback to summary
public long getSocketTimeout()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getSocketTimeout.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getSocketTimeout.

Returns timeout for socket waiting for data in milliseconds.

getTokenCookiePathback to summary
public String getTokenCookiePath()
getTokenMinimumTimeToLiveback to summary
public int getTokenMinimumTimeToLive()
getTokenStoreback to summary
public String getTokenStore()
getTruststoreback to summary
public String getTruststore()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getTruststore.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getTruststore.

Returns truststore filename.

Annotations
@Override
getTruststorePasswordback to summary
public String getTruststorePassword()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getTruststorePassword.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.getTruststorePassword.

Returns truststore password.

Annotations
@Override
getTurnOffChangeSessionIdOnLoginback to summary
public Boolean getTurnOffChangeSessionIdOnLogin()
isAllowAnyHostnameback to summary
public boolean isAllowAnyHostname()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isAllowAnyHostname.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isAllowAnyHostname.

Returns boolean flag whether any hostname verification is done on the server's certificate, true means that verification is not done.

Annotations
@Override
isAlwaysRefreshTokenback to summary
public boolean isAlwaysRefreshToken()
isDisableTrustManagerback to summary
public boolean isDisableTrustManager()

Implements org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isDisableTrustManager.

Doc from org.keycloak.representations.adapters.config.AdapterHttpClientConfig.isDisableTrustManager.

Returns boolean flag whether any trust management and hostname verification is done.

Note

Disabling trust manager is a security hole, so only set this option if you cannot or do not want to verify the identity of the host you are communicating with.

Annotations
@Override
isIgnoreOAuthQueryParameterback to summary
public boolean isIgnoreOAuthQueryParameter()
isPkceback to summary
public boolean isPkce()
isRegisterNodeAtStartupback to summary
public boolean isRegisterNodeAtStartup()
isVerifyTokenAudienceback to summary
public boolean isVerifyTokenAudience()
setAllowAnyHostnameback to summary
public void setAllowAnyHostname(boolean allowAnyHostname)
setAlwaysRefreshTokenback to summary
public void setAlwaysRefreshToken(boolean alwaysRefreshToken)
setClientKeyPasswordback to summary
public void setClientKeyPassword(String clientKeyPassword)
setClientKeystoreback to summary
public void setClientKeystore(String clientKeystore)
setClientKeystorePasswordback to summary
public void setClientKeystorePassword(String clientKeystorePassword)
setConnectionPoolSizeback to summary
public void setConnectionPoolSize(int connectionPoolSize)
setConnectionTimeoutback to summary
public void setConnectionTimeout(long connectionTimeout)
setConnectionTTLback to summary
public void setConnectionTTL(long connectionTTL)
setDisableTrustManagerback to summary
public void setDisableTrustManager(boolean disableTrustManager)
setIgnoreOAuthQueryParameterback to summary
public void setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter)
setMinTimeBetweenJwksRequestsback to summary
public void setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests)
setPkceback to summary
public void setPkce(boolean pkce)
setPolicyEnforcerConfigback to summary
public void setPolicyEnforcerConfig(PolicyEnforcerConfig policyEnforcerConfig)
setPrincipalAttributeback to summary
public void setPrincipalAttribute(String principalAttribute)
setProxyUrlback to summary
public void setProxyUrl(String proxyUrl)
setPublicKeyCacheTtlback to summary
public void setPublicKeyCacheTtl(int publicKeyCacheTtl)
setRegisterNodeAtStartupback to summary
public void setRegisterNodeAtStartup(boolean registerNodeAtStartup)
setRegisterNodePeriodback to summary
public void setRegisterNodePeriod(int registerNodePeriod)
setSocketTimeoutback to summary
public void setSocketTimeout(long socketTimeout)
setTokenCookiePathback to summary
public void setTokenCookiePath(String tokenCookiePath)
setTokenMinimumTimeToLiveback to summary
public void setTokenMinimumTimeToLive(final int tokenMinimumTimeToLive)
setTokenStoreback to summary
public void setTokenStore(String tokenStore)
setTruststoreback to summary
public void setTruststore(String truststore)
setTruststorePasswordback to summary
public void setTruststorePassword(String truststorePassword)
setTurnOffChangeSessionIdOnLoginback to summary
public void setTurnOffChangeSessionIdOnLogin(Boolean turnOffChangeSessionIdOnLogin)
setVerifyTokenAudienceback to summary
public void setVerifyTokenAudience(boolean verifyTokenAudience)