StandardConstants

  • StandardConstants defines standard constants used in network security protocols, primarily for Server Name Indication (SNI) in SSL/TLS.

  • The main constant is SNI_HOST_NAME, representing the DNS hostname type in an SNI extension, enabling clients to specify the target server during the handshake.

  • This class inherits standard methods from java.lang.Object like equals, hashCode, toString, and thread management methods.

  • SNI_HOST_NAME has a constant value of 0x00 and is crucial for secure and efficient communication by ensuring the client connects to the intended server.

public final class StandardConstants extends Object

Standard constants definitions

Constant Summary

int SNI_HOST_NAME The "host_name" type representing of a DNS hostname (see SNIHostName) in a Server Name Indication (SNI) extension.

Inherited Method Summary

Constants

public static final int SNI_HOST_NAME

The "host_name" type representing of a DNS hostname (see SNIHostName) in a Server Name Indication (SNI) extension.

The SNI extension is a feature that extends the SSL/TLS protocols to indicate what server name the client is attempting to connect to during handshaking. See section 3, "Server Name Indication", of TLS Extensions (RFC 6066).

The value of this constant is 0x00.

Constant Value: 0