Class HttpsRelayProtocolModule

java.lang.Object
google.registry.proxy.HttpsRelayProtocolModule

@Module public class HttpsRelayProtocolModule extends Object
Module that provides a Protocol.BackendProtocol.Builder for HTTP(S) protocol.

Only a builder is provided because the client protocol itself depends on the remote host address, which is provided in the server protocol module that relays to this client protocol module, e.g., WhoisProtocolModule.

The protocol can be configured without TLS. In this case, the remote host has to be "localhost". Plan HTTP is only expected to be used when communication with Nomulus is via local loopback (for security reasons), as is the case when both the proxy and Nomulus container live in the same Kubernetes pod.

See Also:
  • Constructor Details

    • HttpsRelayProtocolModule

      public HttpsRelayProtocolModule()
  • Method Details

    • provideTrustedCertificates

      @Nullable @Provides public static X509Certificate[] provideTrustedCertificates()