@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class PolicyConfig extends Object
The configuration details for the WAAS policy.
Note: Objects should always be created or deserialized using the PolicyConfig.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the PolicyConfig.Builder, which maintain a set of all explicitly set fields called __explicitlySet__. The hashCode() and equals(Object) methods are implemented to take __explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__ (since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
PolicyConfig.Builder |
static class |
PolicyConfig.CipherGroup
The cipher group - DEFAULT: Cipher group supports TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3 protocols.
|
static class |
PolicyConfig.ClientAddressHeader
The HTTP header used to pass the client IP address from the CDN if
isBehindCdn is enabled. |
static class |
PolicyConfig.TlsProtocols |
| Constructor and Description |
|---|
PolicyConfig(String certificateId,
Boolean isHttpsEnabled,
Boolean isHttpsForced,
List<PolicyConfig.TlsProtocols> tlsProtocols,
Boolean isOriginCompressionEnabled,
Boolean isBehindCdn,
PolicyConfig.ClientAddressHeader clientAddressHeader,
Boolean isCacheControlRespected,
Boolean isResponseBufferingEnabled,
PolicyConfig.CipherGroup cipherGroup)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static PolicyConfig.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCertificateId()
The OCID of the SSL certificate to use if HTTPS is supported.
|
PolicyConfig.CipherGroup |
getCipherGroup()
The cipher group - DEFAULT: Cipher group supports TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3 protocols.
|
PolicyConfig.ClientAddressHeader |
getClientAddressHeader()
The HTTP header used to pass the client IP address from the CDN if
isBehindCdn is enabled. |
Boolean |
getIsBehindCdn()
Enable or disable the use of CDN.
|
Boolean |
getIsCacheControlRespected()
Enable or disable automatic content caching based on the response
cache-control header. |
Boolean |
getIsHttpsEnabled()
Enable or disable HTTPS support.
|
Boolean |
getIsHttpsForced()
Force HTTP to HTTPS redirection.
|
Boolean |
getIsOriginCompressionEnabled()
Enable or disable GZIP compression of origin responses.
|
Boolean |
getIsResponseBufferingEnabled()
Enable or disable buffering of responses from the origin.
|
List<PolicyConfig.TlsProtocols> |
getTlsProtocols()
A list of allowed TLS protocols.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"certificateId","isHttpsEnabled","isHttpsForced","tlsProtocols","isOriginCompressionEnabled","isBehindCdn","clientAddressHeader","isCacheControlRespected","isResponseBufferingEnabled","cipherGroup"}) @Deprecated public PolicyConfig(String certificateId, Boolean isHttpsEnabled, Boolean isHttpsForced, List<PolicyConfig.TlsProtocols> tlsProtocols, Boolean isOriginCompressionEnabled, Boolean isBehindCdn, PolicyConfig.ClientAddressHeader clientAddressHeader, Boolean isCacheControlRespected, Boolean isResponseBufferingEnabled, PolicyConfig.CipherGroup cipherGroup)
public static PolicyConfig.Builder builder()
Create a new builder.
public String getCertificateId()
The OCID of the SSL certificate to use if HTTPS is supported.
public Boolean getIsHttpsEnabled()
Enable or disable HTTPS support. If true, a certificateId is required. If unspecified, defaults to false.
public Boolean getIsHttpsForced()
Force HTTP to HTTPS redirection. If unspecified, defaults to false.
public List<PolicyConfig.TlsProtocols> getTlsProtocols()
A list of allowed TLS protocols. Only applicable when HTTPS support is enabled. It affects client’s connection to the edge nodes. The most secure TLS version will be chosen. - TLS_V1: corresponds to TLS 1.0 specification.
- TLS_V1_1: corresponds to TLS 1.1 specification.
- TLS_V1_2: corresponds to TLS 1.2 specification.
- TLS_V1_3: corresponds to TLS 1.3 specification.
Enabled TLS protocols must go in a row. For example if TLS_v1_1 and TLS_V1_3 are enabled, TLS_V1_2 must be enabled too.
public Boolean getIsOriginCompressionEnabled()
Enable or disable GZIP compression of origin responses. If enabled, the header Accept-Encoding: gzip is sent to origin, otherwise - empty Accept-Encoding: header is used.
public Boolean getIsBehindCdn()
Enable or disable the use of CDN. It allows to specify true client IP address if clients do not connect directly to us.
public PolicyConfig.ClientAddressHeader getClientAddressHeader()
The HTTP header used to pass the client IP address from the CDN if isBehindCdn is enabled. This feature consumes the header and its value as the true client IP address. It does not create the header. Using trusted chains (for example X-Client-Ip: 11.1.1.1, 13.3.3.3), the last IP address in the list will be used as true client IP address. In case of multiple headers with the same name, the first one will be used. If the header is not present it will use the connecting IP address as the true client IP address. It’s assumed that CDN sets the correct client IP address and prevents spoofing.
- X_FORWARDED_FOR: Corresponds to X-Forwarded-For header name.
- X_CLIENT_IP: Corresponds to X-Client-Ip header name.
- X_REAL_IP: Corresponds to X-Real-Ip header name.
- CLIENT_IP: Corresponds to Client-Ip header name.
- TRUE_CLIENT_IP: Corresponds to True-Client-Ip header name.
public Boolean getIsCacheControlRespected()
Enable or disable automatic content caching based on the response cache-control header. This feature enables the origin to act as a proxy cache. Caching policies are usually defined using cache-control header. For example cache-control: max-age=120 means that the returned resource is valid for 120 seconds. Caching rules will overwrite this setting.
public Boolean getIsResponseBufferingEnabled()
Enable or disable buffering of responses from the origin. Buffering improves overall stability in case of network issues, but slightly increases Time To First Byte.
public PolicyConfig.CipherGroup getCipherGroup()
The cipher group - DEFAULT: Cipher group supports TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3 protocols. It has the following ciphers enabled: ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:!DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
Copyright © 2016–2019. All rights reserved.