public final class TlsServerEndpoint extends Object
"tls-server-end-point" channel binding data.| Modifier and Type | Field and Description |
|---|---|
static String |
TLS_SERVER_END_POINT
The "tls-server-end-point" Channel Binding Type.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getChannelBindingData(@NotNull X509Certificate serverCert)
The hash of the TLS server's certificate [RFC5280] as it appears, octet for octet, in the
server's Certificate message.
|
public static final String TLS_SERVER_END_POINT
public static byte[] getChannelBindingData(@NotNull
@NotNull X509Certificate serverCert)
throws CertificateEncodingException
The TLS server's certificate bytes need to be hashed with SHA-256 if its signature algorithm is MD5 or SHA-1 as per RFC 5929 (https://tools.ietf.org/html/rfc5929#section-4.1). If something else is used, the same hash as the signature algorithm is used.
serverCert - the TLS server's peer certificateCertificateEncodingException - if an encoding error occurs.Copyright © 2017–2025 OnGres, Inc. All rights reserved.