Package org.opensaml.security.httpclient
Interface HttpClientSecurityConfiguration
- All Known Implementing Classes:
BasicHttpClientSecurityConfiguration
public interface HttpClientSecurityConfiguration
The security configuration information to use when performing HTTP client requests.
-
Method Summary
Modifier and TypeMethodDescriptionGet the optional client TLS credential.org.apache.hc.client5.http.auth.CredentialsProviderGet an instance ofCredentialsProviderused for authentication by the HttpClient instance.Get the optional hostname verifier.Map<org.apache.hc.core5.http.HttpHost,org.apache.hc.client5.http.auth.UsernamePasswordCredentials> Get the map of rules for preemptive basic authentication using the supplied hosts and credentials.Get the optional list of TLS cipher suites.Get the optional list of TLS protocols.TrustEngine<? super X509Credential>Sets the optional trust engine used in evaluating server TLS credentials.Get the flag indicating whether failure of server TLS trust engine evaluation should be treated as a fatal error.
-
Method Details
-
getCredentialsProvider
@Nullable org.apache.hc.client5.http.auth.CredentialsProvider getCredentialsProvider()Get an instance ofCredentialsProviderused for authentication by the HttpClient instance.- Returns:
- the credentials provider, or null
-
getPreemptiveBasicAuthMap
@Nullable @Unmodifiable @NotLive Map<org.apache.hc.core5.http.HttpHost,org.apache.hc.client5.http.auth.UsernamePasswordCredentials> getPreemptiveBasicAuthMap()Get the map of rules for preemptive basic authentication using the supplied hosts and credentials.- Returns:
- basic-auth rule map or null
- Since:
- 5.0.0
-
getTLSTrustEngine
Sets the optional trust engine used in evaluating server TLS credentials.- Returns:
- the trust engine instance to use, or null
-
getTLSProtocols
Get the optional list of TLS protocols.- Returns:
- the TLS protocols, or null
-
getTLSCipherSuites
Get the optional list of TLS cipher suites.- Returns:
- the list of TLS cipher suites, or null
-
getHostnameVerifier
Get the optional hostname verifier.- Returns:
- the hostname verifier, or null
-
getClientTLSCredential
Get the optional client TLS credential.- Returns:
- the client TLS credential, or null
-
isServerTLSFailureFatal
Get the flag indicating whether failure of server TLS trust engine evaluation should be treated as a fatal error.Note: a
Booleanis used here rather thanbooleanto explicitly allow a non-configured value, allowing consuming components to implement their own internal defaults.- Returns:
- true if fatal, false if non-fatal, null if not explicitly configured
-