declare namespace javax { namespace net { namespace ssl { /** * Instances of this class represent a server name 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). *
* {@code SNIServerName} objects are immutable. Subclasses should not provide * methods that can change the state of an instance once it has been created. * @see SSLParameters#getServerNames() * @see SSLParameters#setServerNames(List) * @since 1.8 */ // @ts-ignore abstract class SNIServerName extends java.lang.Object { /** * Creates an {@code SNIServerName} using the specified name type and * encoded value. *
* Note that the {@code encoded} byte array is cloned to protect against * subsequent modification. * @param type * the type of the server name * @param encoded * the encoded value of the server name * @throws IllegalArgumentException if {#code type} is not in the range * of 0 to 255, inclusive. * @throws NullPointerException if {#code encoded} is null */ // @ts-ignore constructor(type: number /*int*/, encoded: number /*byte*/[]) /** * Returns the name type of this server name. * @return the name type of this server name */ // @ts-ignore public getType(): number /*int*/ /** * Returns a copy of the encoded server name value of this server name. * @return a copy of the encoded server name value of this server name */ // @ts-ignore public getEncoded(): number /*byte*/[] /** * Indicates whether some other object is "equal to" this server name. * @return true if, and only if, {#code other} is of the same class * of this object, and has the same name type and * encoded value as this server name. */ // @ts-ignore public equals(other: java.lang.Object | any): boolean /** * Returns a hash code value for this server name. *
* The hash code value is generated using the name type and encoded * value of this server name. * @return a hash code value for this server name. */ // @ts-ignore public hashCode(): number /*int*/ /** * Returns a string representation of this server name, including the server * name type and the encoded server name value in this * {@code SNIServerName} object. *
* The exact details of the representation are unspecified and subject * to change, but the following may be regarded as typical: *
* "type={@literal*}, value={@literal }" *
* In this class, the format of "{@literal
* Please NOTE that the exact details of the representation are unspecified
* and subject to change, and subclasses may override the method with
* their own formats.
* @return a string representation of this server name
*/
// @ts-ignore
public toString(): string
}
}
}
}
* "type=(31), value=77:77:77:2E:65:78:61:6D:70:6C:65:2E:63:6E"
*
* or
*
* "type=host_name (0), value=77:77:77:2E:65:78:61:6D:70:6C:65:2E:63:6E"
*
*