public class AdapterConfig extends BaseAdapterConfig implements AdapterHttpClientConfig
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowAnyHostname |
protected boolean |
alwaysRefreshToken |
protected String |
clientKeyPassword |
protected String |
clientKeystore |
protected String |
clientKeystorePassword |
protected int |
connectionPoolSize |
protected boolean |
disableTrustManager |
protected boolean |
ignoreOAuthQueryParameter |
protected int |
minTimeBetweenJwksRequests |
protected boolean |
pkce |
protected PolicyEnforcerConfig |
policyEnforcerConfig |
protected String |
principalAttribute |
protected String |
proxyUrl
The Proxy url to use for requests to the auth-server, configurable via the adapter config property
proxy-url . |
protected int |
publicKeyCacheTtl |
protected boolean |
registerNodeAtStartup |
protected int |
registerNodePeriod |
protected String |
tokenCookiePath |
protected int |
tokenMinimumTimeToLive |
protected String |
tokenStore |
protected String |
truststore |
protected String |
truststorePassword |
protected Boolean |
turnOffChangeSessionIdOnLogin |
protected boolean |
verifyTokenAudience |
autodetectBearerOnly, bearerOnly, cors, corsAllowedHeaders, corsAllowedMethods, corsExposedHeaders, corsMaxAge, credentials, enableBasicAuth, exposeToken, publicClient, redirectRewriteRules, resource, useResourceRoleMappings
authServerUrl, confidentialPort, realm, realmKey, sslRequired
Constructor and Description |
---|
AdapterConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getClientKeyPassword() |
String |
getClientKeystore()
Returns keystore with client keys.
|
String |
getClientKeystorePassword()
Returns keystore password.
|
int |
getConnectionPoolSize()
Returns size of connection pool.
|
int |
getMinTimeBetweenJwksRequests() |
PolicyEnforcerConfig |
getPolicyEnforcerConfig() |
String |
getPrincipalAttribute() |
String |
getProxyUrl()
Returns URL of HTTP proxy.
|
int |
getPublicKeyCacheTtl() |
int |
getRegisterNodePeriod() |
String |
getTokenCookiePath() |
int |
getTokenMinimumTimeToLive() |
String |
getTokenStore() |
String |
getTruststore()
Returns truststore filename.
|
String |
getTruststorePassword()
Returns truststore password.
|
Boolean |
getTurnOffChangeSessionIdOnLogin() |
boolean |
isAllowAnyHostname()
Returns boolean flag whether any hostname verification is done on the server's
certificate,
true means that verification is not done. |
boolean |
isAlwaysRefreshToken() |
boolean |
isDisableTrustManager()
Returns boolean flag whether any trust management and hostname verification is done.
|
boolean |
isIgnoreOAuthQueryParameter() |
boolean |
isPkce() |
boolean |
isRegisterNodeAtStartup() |
boolean |
isVerifyTokenAudience() |
void |
setAllowAnyHostname(boolean allowAnyHostname) |
void |
setAlwaysRefreshToken(boolean alwaysRefreshToken) |
void |
setClientKeyPassword(String clientKeyPassword) |
void |
setClientKeystore(String clientKeystore) |
void |
setClientKeystorePassword(String clientKeystorePassword) |
void |
setConnectionPoolSize(int connectionPoolSize) |
void |
setDisableTrustManager(boolean disableTrustManager) |
void |
setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter) |
void |
setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests) |
void |
setPkce(boolean pkce) |
void |
setPolicyEnforcerConfig(PolicyEnforcerConfig policyEnforcerConfig) |
void |
setPrincipalAttribute(String principalAttribute) |
void |
setProxyUrl(String proxyUrl) |
void |
setPublicKeyCacheTtl(int publicKeyCacheTtl) |
void |
setRegisterNodeAtStartup(boolean registerNodeAtStartup) |
void |
setRegisterNodePeriod(int registerNodePeriod) |
void |
setTokenCookiePath(String tokenCookiePath) |
void |
setTokenMinimumTimeToLive(int tokenMinimumTimeToLive) |
void |
setTokenStore(String tokenStore) |
void |
setTruststore(String truststore) |
void |
setTruststorePassword(String truststorePassword) |
void |
setTurnOffChangeSessionIdOnLogin(Boolean turnOffChangeSessionIdOnLogin) |
void |
setVerifyTokenAudience(boolean verifyTokenAudience) |
getCorsAllowedHeaders, getCorsAllowedMethods, getCorsExposedHeaders, getCorsMaxAge, getCredentials, getRedirectRewriteRules, getResource, isAutodetectBearerOnly, isBearerOnly, isCors, isEnableBasicAuth, isExposeToken, isPublicClient, isUseResourceRoleMappings, setAutodetectBearerOnly, setBearerOnly, setCors, setCorsAllowedHeaders, setCorsAllowedMethods, setCorsExposedHeaders, setCorsMaxAge, setCredentials, setEnableBasicAuth, setExposeToken, setPublicClient, setRedirectRewriteRules, setResource, setUseResourceRoleMappings
getAuthServerUrl, getConfidentialPort, getRealm, getRealmKey, getSslRequired, setAuthServerUrl, setConfidentialPort, setRealm, setRealmKey, setSslRequired
protected boolean allowAnyHostname
protected boolean disableTrustManager
protected String truststore
protected String truststorePassword
protected String clientKeystore
protected String clientKeystorePassword
protected String clientKeyPassword
protected int connectionPoolSize
protected boolean alwaysRefreshToken
protected boolean registerNodeAtStartup
protected int registerNodePeriod
protected String tokenStore
protected String tokenCookiePath
protected String principalAttribute
protected Boolean turnOffChangeSessionIdOnLogin
protected int tokenMinimumTimeToLive
protected int minTimeBetweenJwksRequests
protected int publicKeyCacheTtl
protected PolicyEnforcerConfig policyEnforcerConfig
protected boolean pkce
protected boolean ignoreOAuthQueryParameter
protected boolean verifyTokenAudience
protected String proxyUrl
proxy-url
.public boolean isAllowAnyHostname()
AdapterHttpClientConfig
true
means that verification is not done.isAllowAnyHostname
in interface AdapterHttpClientConfig
public void setAllowAnyHostname(boolean allowAnyHostname)
public boolean isDisableTrustManager()
AdapterHttpClientConfig
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.
isDisableTrustManager
in interface AdapterHttpClientConfig
public void setDisableTrustManager(boolean disableTrustManager)
public String getTruststore()
AdapterHttpClientConfig
getTruststore
in interface AdapterHttpClientConfig
public void setTruststore(String truststore)
public String getTruststorePassword()
AdapterHttpClientConfig
getTruststorePassword
in interface AdapterHttpClientConfig
public void setTruststorePassword(String truststorePassword)
public String getClientKeystore()
AdapterHttpClientConfig
getClientKeystore
in interface AdapterHttpClientConfig
public void setClientKeystore(String clientKeystore)
public String getClientKeystorePassword()
AdapterHttpClientConfig
getClientKeystorePassword
in interface AdapterHttpClientConfig
public void setClientKeystorePassword(String clientKeystorePassword)
public String getClientKeyPassword()
public void setClientKeyPassword(String clientKeyPassword)
public int getConnectionPoolSize()
AdapterHttpClientConfig
getConnectionPoolSize
in interface AdapterHttpClientConfig
public void setConnectionPoolSize(int connectionPoolSize)
public boolean isAlwaysRefreshToken()
public void setAlwaysRefreshToken(boolean alwaysRefreshToken)
public boolean isRegisterNodeAtStartup()
public void setRegisterNodeAtStartup(boolean registerNodeAtStartup)
public int getRegisterNodePeriod()
public void setRegisterNodePeriod(int registerNodePeriod)
public String getTokenStore()
public void setTokenStore(String tokenStore)
public String getTokenCookiePath()
public void setTokenCookiePath(String tokenCookiePath)
public String getPrincipalAttribute()
public void setPrincipalAttribute(String principalAttribute)
public Boolean getTurnOffChangeSessionIdOnLogin()
public void setTurnOffChangeSessionIdOnLogin(Boolean turnOffChangeSessionIdOnLogin)
public PolicyEnforcerConfig getPolicyEnforcerConfig()
public void setPolicyEnforcerConfig(PolicyEnforcerConfig policyEnforcerConfig)
public String getProxyUrl()
AdapterHttpClientConfig
getProxyUrl
in interface AdapterHttpClientConfig
public void setProxyUrl(String proxyUrl)
public int getTokenMinimumTimeToLive()
public void setTokenMinimumTimeToLive(int tokenMinimumTimeToLive)
public int getMinTimeBetweenJwksRequests()
public void setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests)
public int getPublicKeyCacheTtl()
public void setPublicKeyCacheTtl(int publicKeyCacheTtl)
public boolean isPkce()
public void setPkce(boolean pkce)
public boolean isIgnoreOAuthQueryParameter()
public void setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter)
public boolean isVerifyTokenAudience()
public void setVerifyTokenAudience(boolean verifyTokenAudience)
Copyright © 2019 JBoss by Red Hat. All rights reserved.