Package net.webpdf.wsclient.openapi
Class ServerConfigHostCsp
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ServerConfigHostCsp
-
public class ServerConfigHostCsp extends Object
The `csp` element allows you to set a content security policy (https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) for the server portal page.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_HEADER_VALUE
-
Constructor Summary
Constructors Constructor Description ServerConfigHostCsp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerConfigHostCspenabled(Boolean enabled)booleanequals(Object o)@Nullable BooleangetEnabled()When set to true, the CSP is activated.@Nullable StringgetHeaderValue()Defines the value for the HTTP header `Content-Security-Policy`.inthashCode()ServerConfigHostCspheaderValue(String headerValue)voidsetEnabled(Boolean enabled)voidsetHeaderValue(String headerValue)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEADER_VALUE
public static final String JSON_PROPERTY_HEADER_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
enabled
public ServerConfigHostCsp enabled(Boolean enabled)
-
getEnabled
@Nullable public @Nullable Boolean getEnabled()
When set to true, the CSP is activated. The HTTP header \"Content-Security-Policy\" is added, and a \"nonce\" is added to the required resources.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
headerValue
public ServerConfigHostCsp headerValue(String headerValue)
-
getHeaderValue
@Nullable public @Nullable String getHeaderValue()
Defines the value for the HTTP header `Content-Security-Policy`. Use `${nonce}` to insert a nonce value from the server for the entry `'nonce-...'`.- Returns:
- headerValue
-
setHeaderValue
public void setHeaderValue(String headerValue)
-
-