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 int |
minTimeBetweenJwksRequests |
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 boolean |
registerNodeAtStartup |
protected int |
registerNodePeriod |
protected int |
tokenMinimumTimeToLive |
protected String |
tokenStore |
protected String |
truststore |
protected String |
truststorePassword |
protected Boolean |
turnOffChangeSessionIdOnLogin |
bearerOnly, cors, corsAllowedHeaders, corsAllowedMethods, corsMaxAge, credentials, enableBasicAuth, exposeToken, publicClient, resource, useResourceRoleMappingsauthServerUrl, 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 |
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 |
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 |
setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests) |
void |
setPolicyEnforcerConfig(PolicyEnforcerConfig policyEnforcerConfig) |
void |
setPrincipalAttribute(String principalAttribute) |
void |
setProxyUrl(String proxyUrl) |
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, getCorsMaxAge, getCredentials, getResource, isBearerOnly, isCors, isEnableBasicAuth, isExposeToken, isPublicClient, isUseResourceRoleMappings, setBearerOnly, setCors, setCorsAllowedHeaders, setCorsAllowedMethods, setCorsMaxAge, setCredentials, setEnableBasicAuth, setExposeToken, setPublicClient, setResource, setUseResourceRoleMappingsgetAuthServerUrl, getRealm, getRealmKey, getSslRequired, setAuthServerUrl, 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 PolicyEnforcerConfig policyEnforcerConfig
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)
Copyright © 2016 JBoss by Red Hat. All rights reserved.