public class ProxySslConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ProxySslConfig.Builder |
Constructor and Description |
---|
ProxySslConfig() |
Modifier and Type | Method and Description |
---|---|
static ProxySslConfig.Builder |
builder() |
boolean |
equals(java.lang.Object obj) |
static ProxySslConfig |
fromMap(java.util.Map<?,?> map) |
java.lang.String |
getCertificateDestination()
Sets the
ssl_certificate_path to be used within the generated
LoadBalancer configuration. |
java.lang.String |
getCertificateSourceUrl()
URL for the SSL certificates required at the server.
|
java.lang.String |
getClientCertificateDestination() |
java.lang.String |
getClientCertificateSourceUrl() |
java.lang.String |
getKeyDestination()
Sets the
ssl_certificate_key path to be used within the generated
LoadBalancer configuration. |
java.lang.String |
getKeySourceUrl() |
boolean |
getReuseSessions()
Whether to reuse SSL validation in the server (performance).
|
boolean |
getTargetIsSsl()
Whether the downstream server (if mapping) also expects https; default false.
|
boolean |
getVerifyClient()
Whether to verify the client using certificates; default false.
|
int |
hashCode() |
void |
setCertificateDestination(java.lang.String certificateDestination) |
void |
setCertificateSourceUrl(java.lang.String certificateSourceUrl) |
void |
setClientCertificateDestination(java.lang.String clientCertificateDestination) |
void |
setClientCertificateSourceUrl(java.lang.String clientCertificateSourceUrl) |
void |
setKeyDestination(java.lang.String keyDestination) |
void |
setKeySourceUrl(java.lang.String keySourceUrl) |
void |
setReuseSessions(boolean reuseSessions) |
void |
setTargetIsSsl(boolean targetIsSsl) |
void |
setVerifyClient(boolean verifyClient) |
public static ProxySslConfig.Builder builder()
public static ProxySslConfig fromMap(java.util.Map<?,?> map)
public java.lang.String getCertificateSourceUrl()
Corresponding nginx settings:
ssl on; ssl_certificate www.example.com.crt; ssl_certificate_key www.example.com.key;Okay (in nginx) for key to be null if certificate contains both as per setup at http://nginx.org/en/docs/http/configuring_https_servers.html
Proxy object can be set on nginx instance to apply site-wide, and to put multiple servers in the certificate file
The brooklyn entity will install the certificate/key(s) on the server. (however it will not currently merge multiple certificates. if conflicting certificates are attempted to be installed nginx will complain.)
public void setCertificateSourceUrl(java.lang.String certificateSourceUrl)
public java.lang.String getKeySourceUrl()
getCertificateSourceUrl()}
public void setKeySourceUrl(java.lang.String keySourceUrl)
public java.lang.String getClientCertificateSourceUrl()
public void setClientCertificateSourceUrl(java.lang.String clientCertificateSourceUrl)
public java.lang.String getCertificateDestination()
ssl_certificate_path
to be used within the generated
LoadBalancer
configuration.
If set to null, Brooklyn will use an auto generated path.
If certificateSourceUrl
is set *
then Brooklyn will copy the certificate the destination.
Setting this field is useful if there is a certificate
on the
nginx machine you want to make use of.
public void setCertificateDestination(java.lang.String certificateDestination)
public java.lang.String getKeyDestination()
ssl_certificate_key
path to be used within the generated
LoadBalancer
configuration.
If set to null, Brooklyn will use an auto generated path.
If keySourceUrl
is set then Brooklyn will copy the
certificate to the destination.
Setting this field is useful if there is a certificate_key
on the
nginx machine you want to make use of.
public void setKeyDestination(java.lang.String keyDestination)
public java.lang.String getClientCertificateDestination()
public void setClientCertificateDestination(java.lang.String clientCertificateDestination)
public boolean getVerifyClient()
public void setVerifyClient(boolean verifyClient)
public boolean getTargetIsSsl()
public void setTargetIsSsl(boolean targetIsSsl)
public boolean getReuseSessions()
Corresponds to nginx setting proxy_ssl_session_reuse on|off
.
public void setReuseSessions(boolean reuseSessions)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object