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 int |
tokenMinimumTimeToLive |
protected String |
tokenStore |
protected String |
truststore |
protected String |
truststorePassword |
protected Boolean |
turnOffChangeSessionIdOnLogin |
autodetectBearerOnly, bearerOnly, cors, corsAllowedHeaders, corsAllowedMethods, corsExposedHeaders, corsMaxAge, credentials, enableBasicAuth, exposeToken, publicClient, redirectRewriteRules, resource, useResourceRoleMappingsauthServerUrl, 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() |
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() |
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 |
setTokenMinimumTimeToLive(int tokenMinimumTimeToLive) |
void |
setTokenStore(String tokenStore) |
void |
setTruststore(String truststore) |
void |
setTruststorePassword(String truststorePassword) |
void |
setTurnOffChangeSessionIdOnLogin(Boolean turnOffChangeSessionIdOnLogin) |
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, setUseResourceRoleMappingsgetAuthServerUrl, getConfidentialPort, getRealm, getRealmKey, getSslRequired, setAuthServerUrl, setConfidentialPort, setRealm, setRealmKey, setSslRequiredprotected 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 principalAttribute
protected Boolean turnOffChangeSessionIdOnLogin
protected int tokenMinimumTimeToLive
protected int minTimeBetweenJwksRequests
protected int publicKeyCacheTtl
protected PolicyEnforcerConfig policyEnforcerConfig
protected boolean pkce
protected boolean ignoreOAuthQueryParameter
protected String proxyUrl
proxy-url.public boolean isAllowAnyHostname()
AdapterHttpClientConfigtrue means that verification is not done.isAllowAnyHostname in interface AdapterHttpClientConfigpublic void setAllowAnyHostname(boolean allowAnyHostname)
public boolean isDisableTrustManager()
AdapterHttpClientConfigNOTE 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 AdapterHttpClientConfigpublic void setDisableTrustManager(boolean disableTrustManager)
public String getTruststore()
AdapterHttpClientConfiggetTruststore in interface AdapterHttpClientConfigpublic void setTruststore(String truststore)
public String getTruststorePassword()
AdapterHttpClientConfiggetTruststorePassword in interface AdapterHttpClientConfigpublic void setTruststorePassword(String truststorePassword)
public String getClientKeystore()
AdapterHttpClientConfiggetClientKeystore in interface AdapterHttpClientConfigpublic void setClientKeystore(String clientKeystore)
public String getClientKeystorePassword()
AdapterHttpClientConfiggetClientKeystorePassword in interface AdapterHttpClientConfigpublic void setClientKeystorePassword(String clientKeystorePassword)
public String getClientKeyPassword()
public void setClientKeyPassword(String clientKeyPassword)
public int getConnectionPoolSize()
AdapterHttpClientConfiggetConnectionPoolSize in interface AdapterHttpClientConfigpublic 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 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()
AdapterHttpClientConfiggetProxyUrl in interface AdapterHttpClientConfigpublic 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)
Copyright © 2018 JBoss by Red Hat. All rights reserved.