Class ListenerTls

    • Method Detail

      • certificate

        public final ListenerTlsCertificate certificate()

        A reference to an object that represents a listener's Transport Layer Security (TLS) certificate.

        Returns:
        A reference to an object that represents a listener's Transport Layer Security (TLS) certificate.
      • mode

        public final ListenerTlsMode mode()

        Specify one of the following modes.

        • STRICT – Listener only accepts connections with TLS enabled.

        • PERMISSIVE – Listener accepts connections with or without TLS enabled.

        • DISABLED – Listener only accepts connections without TLS.

        If the service returns an enum value that is not available in the current SDK version, mode will return ListenerTlsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        Specify one of the following modes.

        • STRICT – Listener only accepts connections with TLS enabled.

        • PERMISSIVE – Listener accepts connections with or without TLS enabled.

        • DISABLED – Listener only accepts connections without TLS.

        See Also:
        ListenerTlsMode
      • modeAsString

        public final String modeAsString()

        Specify one of the following modes.

        • STRICT – Listener only accepts connections with TLS enabled.

        • PERMISSIVE – Listener accepts connections with or without TLS enabled.

        • DISABLED – Listener only accepts connections without TLS.

        If the service returns an enum value that is not available in the current SDK version, mode will return ListenerTlsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        Specify one of the following modes.

        • STRICT – Listener only accepts connections with TLS enabled.

        • PERMISSIVE – Listener accepts connections with or without TLS enabled.

        • DISABLED – Listener only accepts connections without TLS.

        See Also:
        ListenerTlsMode
      • validation

        public final ListenerTlsValidationContext validation()

        A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.

        Returns:
        A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)