public static final class ResponseSecurityHeadersBehavior.Builder
extends java.lang.Object
ResponseSecurityHeadersBehavior
Constructor and Description |
---|
Builder() |
public ResponseSecurityHeadersBehavior.Builder contentSecurityPolicy(ResponseHeadersContentSecurityPolicy contentSecurityPolicy)
ResponseSecurityHeadersBehavior.getContentSecurityPolicy()
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.this
public ResponseSecurityHeadersBehavior.Builder contentTypeOptions(ResponseHeadersContentTypeOptions contentTypeOptions)
ResponseSecurityHeadersBehavior.getContentTypeOptions()
contentTypeOptions
- Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff.this
public ResponseSecurityHeadersBehavior.Builder frameOptions(ResponseHeadersFrameOptions frameOptions)
ResponseSecurityHeadersBehavior.getFrameOptions()
frameOptions
- Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value.this
public ResponseSecurityHeadersBehavior.Builder referrerPolicy(ResponseHeadersReferrerPolicy referrerPolicy)
ResponseSecurityHeadersBehavior.getReferrerPolicy()
referrerPolicy
- Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value.this
public ResponseSecurityHeadersBehavior.Builder strictTransportSecurity(ResponseHeadersStrictTransportSecurity strictTransportSecurity)
ResponseSecurityHeadersBehavior.getStrictTransportSecurity()
strictTransportSecurity
- Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value.this
public ResponseSecurityHeadersBehavior.Builder xssProtection(ResponseHeadersXSSProtection xssProtection)
ResponseSecurityHeadersBehavior.getXssProtection()
xssProtection
- Determines whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value.this
public ResponseSecurityHeadersBehavior build()
ResponseSecurityHeadersBehavior
java.lang.NullPointerException
- if any required attribute was not provided