Class ScimClientConfig
java.lang.Object
de.captaingoldfish.scim.sdk.client.ScimClientConfig
author Pascal Knueppel
created at: 10.12.2019 - 13:39
created at: 10.12.2019 - 13:39
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classoverride lombok builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intthe default timeout value to use in seconds -
Constructor Summary
ConstructorsConstructorDescriptionScimClientConfig(Integer requestTimeout, Integer socketTimeout, Integer connectTimeout, boolean enableCookieManagement, boolean enableAutomaticBulkRequestSplitting, HostnameVerifier hostnameVerifier, ProxyHelper proxy, KeyStoreWrapper clientAuth, KeyStoreWrapper truststore, Map<String, String> httpHeaders, Map<String, String[]> httpMultiHeaders, BasicAuth basicAuth, ConfigManipulator configManipulator, boolean useLowerCaseInFilterComparators, Map<String, String> expectedHttpResponseHeaders, String tlsVersion, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()an optional basic authentication objectthe keystore that should be used for client authenticationmay be used to manipulate the apache configuration before the http client is createdintconnect timeout in secondsnormally SCIM responses must have set the http-header "application/scim+json".the hostname verifier that should be used in the requestsorg.apache.http.impl.client.HttpClientBuilderGet the custom HttpClientBuilder if set, get a default HttpClientBuilder otherwise.additional http headers that may be used to authorize at the scim servergetProxy()proxy if the request must be sent through a proxyintrequest timeout in secondsintsocket timeout in secondsa string value describing the TLS version that is used for SSLContextsthe truststore to trust the serverbooleanif large request operation lists should automatically be split into several requests based on the maxOperations value from the service provider.booleanif cookie management should be enabled or not.booleanif the filter-expression-comparators should be sent in lowercase instead of uppercase e.g.: eq instead of EQ.voidsetBasicAuth(BasicAuth basicAuth) an optional basic authentication objectvoidsetClientAuth(KeyStoreWrapper clientAuth) the keystore that should be used for client authenticationvoidsetConfigManipulator(ConfigManipulator configManipulator) may be used to manipulate the apache configuration before the http client is createdvoidsetConnectTimeout(int connectTimeout) connect timeout in secondsvoidsetEnableAutomaticBulkRequestSplitting(boolean enableAutomaticBulkRequestSplitting) if large request operation lists should automatically be split into several requests based on the maxOperations value from the service provider.voidsetEnableCookieManagement(boolean enableCookieManagement) if cookie management should be enabled or not.voidsetExpectedHttpResponseHeaders(Map<String, String> expectedHttpResponseHeaders) normally SCIM responses must have set the http-header "application/scim+json".voidsetHostnameVerifier(HostnameVerifier hostnameVerifier) the hostname verifier that should be used in the requestsvoidsetHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) aHttpClientBuilderinstance for custom HTTP clientsvoidsetHttpHeaders(Map<String, String[]> httpHeaders) additional http headers that may be used to authorize at the scim servervoidsetProxy(ProxyHelper proxy) proxy if the request must be sent through a proxyvoidsetRequestTimeout(int requestTimeout) request timeout in secondsvoidsetSocketTimeout(int socketTimeout) socket timeout in secondsvoidsetTlsVersion(String tlsVersion) a string value describing the TLS version that is used for SSLContextsvoidsetTruststore(KeyStoreWrapper truststore) the truststore to trust the servervoidsetUseLowerCaseInFilterComparators(boolean useLowerCaseInFilterComparators) if the filter-expression-comparators should be sent in lowercase instead of uppercase e.g.: eq instead of EQ.
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUTthe default timeout value to use in seconds- See Also:
-
-
Constructor Details
-
ScimClientConfig
public ScimClientConfig(Integer requestTimeout, Integer socketTimeout, Integer connectTimeout, boolean enableCookieManagement, boolean enableAutomaticBulkRequestSplitting, HostnameVerifier hostnameVerifier, ProxyHelper proxy, KeyStoreWrapper clientAuth, KeyStoreWrapper truststore, Map<String, String> httpHeaders, Map<String, String[]> httpMultiHeaders, BasicAuth basicAuth, ConfigManipulator configManipulator, boolean useLowerCaseInFilterComparators, Map<String, String> expectedHttpResponseHeaders, String tlsVersion, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) -
ScimClientConfig
public ScimClientConfig()
-
-
Method Details
-
getHttpClientBuilder
public org.apache.http.impl.client.HttpClientBuilder getHttpClientBuilder()Get the custom HttpClientBuilder if set, get a default HttpClientBuilder otherwise. -
builder
-
getRequestTimeout
public int getRequestTimeout()request timeout in seconds -
getSocketTimeout
public int getSocketTimeout()socket timeout in seconds -
getConnectTimeout
public int getConnectTimeout()connect timeout in seconds -
isEnableCookieManagement
public boolean isEnableCookieManagement()if cookie management should be enabled or not. Default is false. -
isEnableAutomaticBulkRequestSplitting
public boolean isEnableAutomaticBulkRequestSplitting()if large request operation lists should automatically be split into several requests based on the maxOperations value from the service provider. Please note that a failed request in the middle of the process might cause unwanted results on the server that need to be resolved manually. -
getHostnameVerifier
the hostname verifier that should be used in the requests -
getProxy
proxy if the request must be sent through a proxy -
getClientAuth
the keystore that should be used for client authentication -
getTruststore
the truststore to trust the server -
getHttpHeaders
additional http headers that may be used to authorize at the scim server -
getExpectedHttpResponseHeaders
normally SCIM responses must have set the http-header "application/scim+json". But some providers are not providing these headers. If so, set this map in order to modify the check of the response headers from the server.
- null: The headers are checked as normally for the content-type "application/scim+json"
- empty map: The check of response headers is disabled
- filled map: The check of the response headers will be done with the entries of this map
-
getBasicAuth
an optional basic authentication object -
getConfigManipulator
may be used to manipulate the apache configuration before the http client is created -
isUseLowerCaseInFilterComparators
public boolean isUseLowerCaseInFilterComparators()if the filter-expression-comparators should be sent in lowercase instead of uppercase e.g.: eq instead of EQ. -
getTlsVersion
a string value describing the TLS version that is used for SSLContexts -
setRequestTimeout
public void setRequestTimeout(int requestTimeout) request timeout in seconds -
setSocketTimeout
public void setSocketTimeout(int socketTimeout) socket timeout in seconds -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) connect timeout in seconds -
setEnableCookieManagement
public void setEnableCookieManagement(boolean enableCookieManagement) if cookie management should be enabled or not. Default is false. -
setEnableAutomaticBulkRequestSplitting
public void setEnableAutomaticBulkRequestSplitting(boolean enableAutomaticBulkRequestSplitting) if large request operation lists should automatically be split into several requests based on the maxOperations value from the service provider. Please note that a failed request in the middle of the process might cause unwanted results on the server that need to be resolved manually. -
setHostnameVerifier
the hostname verifier that should be used in the requests -
setProxy
proxy if the request must be sent through a proxy -
setClientAuth
the keystore that should be used for client authentication -
setTruststore
the truststore to trust the server -
setHttpHeaders
additional http headers that may be used to authorize at the scim server -
setExpectedHttpResponseHeaders
normally SCIM responses must have set the http-header "application/scim+json". But some providers are not providing these headers. If so, set this map in order to modify the check of the response headers from the server.
- null: The headers are checked as normally for the content-type "application/scim+json"
- empty map: The check of response headers is disabled
- filled map: The check of the response headers will be done with the entries of this map
-
setBasicAuth
an optional basic authentication object -
setConfigManipulator
may be used to manipulate the apache configuration before the http client is created -
setUseLowerCaseInFilterComparators
public void setUseLowerCaseInFilterComparators(boolean useLowerCaseInFilterComparators) if the filter-expression-comparators should be sent in lowercase instead of uppercase e.g.: eq instead of EQ. -
setTlsVersion
a string value describing the TLS version that is used for SSLContexts -
setHttpClientBuilder
public void setHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) aHttpClientBuilderinstance for custom HTTP clients
-