org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class SSLTermination.Builder

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.SSLTermination.Builder
Enclosing class:
SSLTermination

public static class SSLTermination.Builder
extends Object


Constructor Summary
SSLTermination.Builder()
           
 
Method Summary
 SSLTermination build()
           
 SSLTermination.Builder certificate(String certificate)
          Required.
 SSLTermination.Builder enabled(boolean enabled)
          Required.
 SSLTermination.Builder from(SSLTermination in)
           
 SSLTermination.Builder intermediateCertificate(String intermediateCertificate)
          Optional only when configuring Intermediate SSL Termination.
 SSLTermination.Builder privatekey(String privateKey)
          Required.
 SSLTermination.Builder securePort(int securePort)
          Required.
 SSLTermination.Builder secureTrafficOnly(boolean secureTrafficOnly)
          Required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLTermination.Builder

public SSLTermination.Builder()
Method Detail

enabled

public SSLTermination.Builder enabled(boolean enabled)
Required. Determines if the load balancer is enabled to terminate SSL traffic.

If enabled = false, the load balancer will retain its specified SSL attributes, but will not terminate SSL traffic.


secureTrafficOnly

public SSLTermination.Builder secureTrafficOnly(boolean secureTrafficOnly)
Required. Determines if the load balancer may accept only secure traffic.

If secureTrafficOnly = true, the load balancer will not accept non-secure traffic.


securePort

public SSLTermination.Builder securePort(int securePort)
Required. The port on which the SSL termination load balancer will listen for secure traffic.

The securePort must be unique to the existing LB protocol/port combination. For example, port 443.


certificate

public SSLTermination.Builder certificate(String certificate)
Required. The certificate used for SSL termination.

The certificate is validated and verified against the key and intermediate certificate if provided.

All requests to SSL termination require the key/certificates to be in "proper" format, meaning that all raw line feed characters should be wrapped in a newline character. So if the user pastes in the key from a mykey.key file, it will not properly handle the field. For example, use string.replaceAll("\n", "\\n").


privatekey

public SSLTermination.Builder privatekey(String privateKey)
Required. The private key for the SSL certificate.

The private key is validated and verified against the provided certificate(s).

See Also:
SSLTermination#certificate(String)

intermediateCertificate

public SSLTermination.Builder intermediateCertificate(String intermediateCertificate)
Optional only when configuring Intermediate SSL Termination. The user's intermediate certificate used for SSL termination.

The intermediate certificate is validated and verified against the key and certificate credentials provided.

A user may only provide an intermediateCertificate when accompanied by a certificate, private key, and securePort. It may not be added to an existing SSL configuration as a single attribute in a future request.

See Also:
SSLTermination#certificate(String)

build

public SSLTermination build()

from

public SSLTermination.Builder from(SSLTermination in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.