Class TlsExtensionsUtils

java.lang.Object
org.bouncycastle.tls.TlsExtensionsUtils

public class TlsExtensionsUtils extends Object
  • Field Details

    • EXT_application_layer_protocol_negotiation

      public static final Integer EXT_application_layer_protocol_negotiation
    • EXT_certificate_authorities

      public static final Integer EXT_certificate_authorities
    • EXT_client_certificate_type

      public static final Integer EXT_client_certificate_type
    • EXT_client_certificate_url

      public static final Integer EXT_client_certificate_url
    • EXT_compress_certificate

      public static final Integer EXT_compress_certificate
    • EXT_connection_id

      public static final Integer EXT_connection_id
    • EXT_early_data

      public static final Integer EXT_early_data
    • EXT_ec_point_formats

      public static final Integer EXT_ec_point_formats
    • EXT_encrypt_then_mac

      public static final Integer EXT_encrypt_then_mac
    • EXT_extended_master_secret

      public static final Integer EXT_extended_master_secret
    • EXT_heartbeat

      public static final Integer EXT_heartbeat
    • EXT_key_share

      public static final Integer EXT_key_share
    • EXT_max_fragment_length

      public static final Integer EXT_max_fragment_length
    • EXT_oid_filters

      public static final Integer EXT_oid_filters
    • EXT_padding

      public static final Integer EXT_padding
    • EXT_post_handshake_auth

      public static final Integer EXT_post_handshake_auth
    • EXT_pre_shared_key

      public static final Integer EXT_pre_shared_key
    • EXT_psk_key_exchange_modes

      public static final Integer EXT_psk_key_exchange_modes
    • EXT_record_size_limit

      public static final Integer EXT_record_size_limit
    • EXT_server_certificate_type

      public static final Integer EXT_server_certificate_type
    • EXT_server_name

      public static final Integer EXT_server_name
    • EXT_signature_algorithms

      public static final Integer EXT_signature_algorithms
    • EXT_signature_algorithms_cert

      public static final Integer EXT_signature_algorithms_cert
    • EXT_status_request

      public static final Integer EXT_status_request
    • EXT_status_request_v2

      public static final Integer EXT_status_request_v2
    • EXT_supported_groups

      public static final Integer EXT_supported_groups
    • EXT_supported_versions

      public static final Integer EXT_supported_versions
    • EXT_truncated_hmac

      public static final Integer EXT_truncated_hmac
    • EXT_trusted_ca_keys

      public static final Integer EXT_trusted_ca_keys
  • Constructor Details

    • TlsExtensionsUtils

      public TlsExtensionsUtils()
  • Method Details

    • ensureExtensionsInitialised

      public static Hashtable ensureExtensionsInitialised(Hashtable extensions)
    • addALPNExtensionClient

      public static void addALPNExtensionClient(Hashtable extensions, Vector protocolNameList) throws IOException
      Parameters:
      protocolNameList - a Vector of ProtocolName
      Throws:
      IOException
    • addALPNExtensionServer

      public static void addALPNExtensionServer(Hashtable extensions, ProtocolName protocolName) throws IOException
      Throws:
      IOException
    • addCertificateAuthoritiesExtension

      public static void addCertificateAuthoritiesExtension(Hashtable extensions, Vector authorities) throws IOException
      Throws:
      IOException
    • addClientCertificateTypeExtensionClient

      public static void addClientCertificateTypeExtensionClient(Hashtable extensions, short[] certificateTypes) throws IOException
      Throws:
      IOException
    • addClientCertificateTypeExtensionServer

      public static void addClientCertificateTypeExtensionServer(Hashtable extensions, short certificateType) throws IOException
      Throws:
      IOException
    • addClientCertificateURLExtension

      public static void addClientCertificateURLExtension(Hashtable extensions)
    • addCompressCertificateExtension

      public static void addCompressCertificateExtension(Hashtable extensions, int[] algorithms) throws IOException
      Throws:
      IOException
    • addConnectionIDExtension

      public static void addConnectionIDExtension(Hashtable extensions, byte[] connectionID) throws IOException
      Throws:
      IOException
    • addCookieExtension

      public static void addCookieExtension(Hashtable extensions, byte[] cookie) throws IOException
      Throws:
      IOException
    • addEarlyDataIndication

      public static void addEarlyDataIndication(Hashtable extensions)
    • addEarlyDataMaxSize

      public static void addEarlyDataMaxSize(Hashtable extensions, long maxSize) throws IOException
      Throws:
      IOException
    • addEmptyExtensionData

      public static void addEmptyExtensionData(Hashtable extensions, Integer extType)
    • addEncryptThenMACExtension

      public static void addEncryptThenMACExtension(Hashtable extensions)
    • addExtendedMasterSecretExtension

      public static void addExtendedMasterSecretExtension(Hashtable extensions)
    • addHeartbeatExtension

      public static void addHeartbeatExtension(Hashtable extensions, HeartbeatExtension heartbeatExtension) throws IOException
      Throws:
      IOException
    • addKeyShareClientHello

      public static void addKeyShareClientHello(Hashtable extensions, Vector clientShares) throws IOException
      Throws:
      IOException
    • addKeyShareHelloRetryRequest

      public static void addKeyShareHelloRetryRequest(Hashtable extensions, int namedGroup) throws IOException
      Throws:
      IOException
    • addKeyShareServerHello

      public static void addKeyShareServerHello(Hashtable extensions, KeyShareEntry serverShare) throws IOException
      Throws:
      IOException
    • addMaxFragmentLengthExtension

      public static void addMaxFragmentLengthExtension(Hashtable extensions, short maxFragmentLength) throws IOException
      Throws:
      IOException
    • addOIDFiltersExtension

      public static void addOIDFiltersExtension(Hashtable extensions, Hashtable filters) throws IOException
      Throws:
      IOException
    • addPaddingExtension

      public static void addPaddingExtension(Hashtable extensions, int dataLength) throws IOException
      Throws:
      IOException
    • addPostHandshakeAuthExtension

      public static void addPostHandshakeAuthExtension(Hashtable extensions)
    • addPreSharedKeyClientHello

      public static void addPreSharedKeyClientHello(Hashtable extensions, OfferedPsks offeredPsks) throws IOException
      Throws:
      IOException
    • addPreSharedKeyServerHello

      public static void addPreSharedKeyServerHello(Hashtable extensions, int selectedIdentity) throws IOException
      Throws:
      IOException
    • addPSKKeyExchangeModesExtension

      public static void addPSKKeyExchangeModesExtension(Hashtable extensions, short[] modes) throws IOException
      Throws:
      IOException
    • addRecordSizeLimitExtension

      public static void addRecordSizeLimitExtension(Hashtable extensions, int recordSizeLimit) throws IOException
      Throws:
      IOException
    • addServerCertificateTypeExtensionClient

      public static void addServerCertificateTypeExtensionClient(Hashtable extensions, short[] certificateTypes) throws IOException
      Throws:
      IOException
    • addServerCertificateTypeExtensionServer

      public static void addServerCertificateTypeExtensionServer(Hashtable extensions, short certificateType) throws IOException
      Throws:
      IOException
    • addServerNameExtensionClient

      public static void addServerNameExtensionClient(Hashtable extensions, Vector serverNameList) throws IOException
      Throws:
      IOException
    • addServerNameExtensionServer

      public static void addServerNameExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • addSignatureAlgorithmsExtension

      public static void addSignatureAlgorithmsExtension(Hashtable extensions, Vector supportedSignatureAlgorithms) throws IOException
      Throws:
      IOException
    • addSignatureAlgorithmsCertExtension

      public static void addSignatureAlgorithmsCertExtension(Hashtable extensions, Vector supportedSignatureAlgorithms) throws IOException
      Throws:
      IOException
    • addStatusRequestExtension

      public static void addStatusRequestExtension(Hashtable extensions, CertificateStatusRequest statusRequest) throws IOException
      Throws:
      IOException
    • addStatusRequestV2Extension

      public static void addStatusRequestV2Extension(Hashtable extensions, Vector statusRequestV2) throws IOException
      Throws:
      IOException
    • addSupportedGroupsExtension

      public static void addSupportedGroupsExtension(Hashtable extensions, Vector namedGroups) throws IOException
      Throws:
      IOException
    • addSupportedPointFormatsExtension

      public static void addSupportedPointFormatsExtension(Hashtable extensions, short[] ecPointFormats) throws IOException
      Throws:
      IOException
    • addSupportedVersionsExtensionClient

      public static void addSupportedVersionsExtensionClient(Hashtable extensions, ProtocolVersion[] versions) throws IOException
      Throws:
      IOException
    • addSupportedVersionsExtensionServer

      public static void addSupportedVersionsExtensionServer(Hashtable extensions, ProtocolVersion selectedVersion) throws IOException
      Throws:
      IOException
    • addTruncatedHMacExtension

      public static void addTruncatedHMacExtension(Hashtable extensions)
    • addTrustedCAKeysExtensionClient

      public static void addTrustedCAKeysExtensionClient(Hashtable extensions, Vector trustedAuthoritiesList) throws IOException
      Throws:
      IOException
    • addTrustedCAKeysExtensionServer

      public static void addTrustedCAKeysExtensionServer(Hashtable extensions)
    • getALPNExtensionClient

      public static Vector getALPNExtensionClient(Hashtable extensions) throws IOException
      Returns:
      a Vector of ProtocolName
      Throws:
      IOException
    • getALPNExtensionServer

      public static ProtocolName getALPNExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getCertificateAuthoritiesExtension

      public static Vector getCertificateAuthoritiesExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getClientCertificateTypeExtensionClient

      public static short[] getClientCertificateTypeExtensionClient(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getClientCertificateTypeExtensionServer

      public static short getClientCertificateTypeExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getClientCertificateTypeExtensionServer

      public static short getClientCertificateTypeExtensionServer(Hashtable extensions, short defaultValue) throws IOException
      Deprecated.
      Use version without defaultValue instead
      Throws:
      IOException
    • getCompressCertificateExtension

      public static int[] getCompressCertificateExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getConnectionIDExtension

      public static byte[] getConnectionIDExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getCookieExtension

      public static byte[] getCookieExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getEarlyDataMaxSize

      public static long getEarlyDataMaxSize(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getHeartbeatExtension

      public static HeartbeatExtension getHeartbeatExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getKeyShareClientHello

      public static Vector getKeyShareClientHello(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getKeyShareHelloRetryRequest

      public static int getKeyShareHelloRetryRequest(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getKeyShareServerHello

      public static KeyShareEntry getKeyShareServerHello(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getMaxFragmentLengthExtension

      public static short getMaxFragmentLengthExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getOIDFiltersExtension

      public static Hashtable getOIDFiltersExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getPaddingExtension

      public static int getPaddingExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getPreSharedKeyClientHello

      public static OfferedPsks getPreSharedKeyClientHello(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getPreSharedKeyServerHello

      public static int getPreSharedKeyServerHello(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getPSKKeyExchangeModesExtension

      public static short[] getPSKKeyExchangeModesExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getRecordSizeLimitExtension

      public static int getRecordSizeLimitExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getServerCertificateTypeExtensionClient

      public static short[] getServerCertificateTypeExtensionClient(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getServerCertificateTypeExtensionServer

      public static short getServerCertificateTypeExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getServerCertificateTypeExtensionServer

      public static short getServerCertificateTypeExtensionServer(Hashtable extensions, short defaultValue) throws IOException
      Deprecated.
      Use version without defaultValue instead
      Throws:
      IOException
    • getServerNameExtensionClient

      public static Vector getServerNameExtensionClient(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSignatureAlgorithmsExtension

      public static Vector getSignatureAlgorithmsExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSignatureAlgorithmsCertExtension

      public static Vector getSignatureAlgorithmsCertExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getStatusRequestExtension

      public static CertificateStatusRequest getStatusRequestExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getStatusRequestV2Extension

      public static Vector getStatusRequestV2Extension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSupportedGroupsExtension

      public static int[] getSupportedGroupsExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSupportedPointFormatsExtension

      public static short[] getSupportedPointFormatsExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSupportedVersionsExtensionClient

      public static ProtocolVersion[] getSupportedVersionsExtensionClient(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getSupportedVersionsExtensionServer

      public static ProtocolVersion getSupportedVersionsExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • getTrustedCAKeysExtensionClient

      public static Vector getTrustedCAKeysExtensionClient(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasClientCertificateURLExtension

      public static boolean hasClientCertificateURLExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasEarlyDataIndication

      public static boolean hasEarlyDataIndication(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasEncryptThenMACExtension

      public static boolean hasEncryptThenMACExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasExtendedMasterSecretExtension

      public static boolean hasExtendedMasterSecretExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasServerNameExtensionServer

      public static boolean hasServerNameExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasPostHandshakeAuthExtension

      public static boolean hasPostHandshakeAuthExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasTruncatedHMacExtension

      public static boolean hasTruncatedHMacExtension(Hashtable extensions) throws IOException
      Throws:
      IOException
    • hasTrustedCAKeysExtensionServer

      public static boolean hasTrustedCAKeysExtensionServer(Hashtable extensions) throws IOException
      Throws:
      IOException
    • createALPNExtensionClient

      public static byte[] createALPNExtensionClient(Vector protocolNameList) throws IOException
      Parameters:
      protocolNameList - a Vector of ProtocolName
      Throws:
      IOException
    • createALPNExtensionServer

      public static byte[] createALPNExtensionServer(ProtocolName protocolName) throws IOException
      Throws:
      IOException
    • createCertificateAuthoritiesExtension

      public static byte[] createCertificateAuthoritiesExtension(Vector authorities) throws IOException
      Throws:
      IOException
    • createCertificateTypeExtensionClient

      public static byte[] createCertificateTypeExtensionClient(short[] certificateTypes) throws IOException
      Throws:
      IOException
    • createCertificateTypeExtensionServer

      public static byte[] createCertificateTypeExtensionServer(short certificateType) throws IOException
      Throws:
      IOException
    • createClientCertificateURLExtension

      public static byte[] createClientCertificateURLExtension()
    • createCompressCertificateExtension

      public static byte[] createCompressCertificateExtension(int[] algorithms) throws IOException
      Throws:
      IOException
    • createConnectionIDExtension

      public static byte[] createConnectionIDExtension(byte[] connectionID) throws IOException
      Throws:
      IOException
    • createCookieExtension

      public static byte[] createCookieExtension(byte[] cookie) throws IOException
      Throws:
      IOException
    • createEarlyDataIndication

      public static byte[] createEarlyDataIndication()
    • createEarlyDataMaxSize

      public static byte[] createEarlyDataMaxSize(long maxSize) throws IOException
      Throws:
      IOException
    • createEmptyExtensionData

      public static byte[] createEmptyExtensionData()
    • createEncryptThenMACExtension

      public static byte[] createEncryptThenMACExtension()
    • createExtendedMasterSecretExtension

      public static byte[] createExtendedMasterSecretExtension()
    • createHeartbeatExtension

      public static byte[] createHeartbeatExtension(HeartbeatExtension heartbeatExtension) throws IOException
      Throws:
      IOException
    • createKeyShareClientHello

      public static byte[] createKeyShareClientHello(Vector clientShares) throws IOException
      Throws:
      IOException
    • createKeyShareHelloRetryRequest

      public static byte[] createKeyShareHelloRetryRequest(int namedGroup) throws IOException
      Throws:
      IOException
    • createKeyShareServerHello

      public static byte[] createKeyShareServerHello(KeyShareEntry serverShare) throws IOException
      Throws:
      IOException
    • createMaxFragmentLengthExtension

      public static byte[] createMaxFragmentLengthExtension(short maxFragmentLength) throws IOException
      Throws:
      IOException
    • createOIDFiltersExtension

      public static byte[] createOIDFiltersExtension(Hashtable filters) throws IOException
      Throws:
      IOException
    • createPaddingExtension

      public static byte[] createPaddingExtension(int dataLength) throws IOException
      Throws:
      IOException
    • createPostHandshakeAuthExtension

      public static byte[] createPostHandshakeAuthExtension()
    • createPreSharedKeyClientHello

      public static byte[] createPreSharedKeyClientHello(OfferedPsks offeredPsks) throws IOException
      Throws:
      IOException
    • createPreSharedKeyServerHello

      public static byte[] createPreSharedKeyServerHello(int selectedIdentity) throws IOException
      Throws:
      IOException
    • createPSKKeyExchangeModesExtension

      public static byte[] createPSKKeyExchangeModesExtension(short[] modes) throws IOException
      Throws:
      IOException
    • createRecordSizeLimitExtension

      public static byte[] createRecordSizeLimitExtension(int recordSizeLimit) throws IOException
      Throws:
      IOException
    • createServerNameExtensionClient

      public static byte[] createServerNameExtensionClient(Vector serverNameList) throws IOException
      Throws:
      IOException
    • createServerNameExtensionServer

      public static byte[] createServerNameExtensionServer()
    • createSignatureAlgorithmsExtension

      public static byte[] createSignatureAlgorithmsExtension(Vector supportedSignatureAlgorithms) throws IOException
      Throws:
      IOException
    • createSignatureAlgorithmsCertExtension

      public static byte[] createSignatureAlgorithmsCertExtension(Vector supportedSignatureAlgorithms) throws IOException
      Throws:
      IOException
    • createStatusRequestExtension

      public static byte[] createStatusRequestExtension(CertificateStatusRequest statusRequest) throws IOException
      Throws:
      IOException
    • createStatusRequestV2Extension

      public static byte[] createStatusRequestV2Extension(Vector statusRequestV2) throws IOException
      Throws:
      IOException
    • createSupportedGroupsExtension

      public static byte[] createSupportedGroupsExtension(Vector namedGroups) throws IOException
      Throws:
      IOException
    • createSupportedPointFormatsExtension

      public static byte[] createSupportedPointFormatsExtension(short[] ecPointFormats) throws IOException
      Throws:
      IOException
    • createSupportedVersionsExtensionClient

      public static byte[] createSupportedVersionsExtensionClient(ProtocolVersion[] versions) throws IOException
      Throws:
      IOException
    • createSupportedVersionsExtensionServer

      public static byte[] createSupportedVersionsExtensionServer(ProtocolVersion selectedVersion) throws IOException
      Throws:
      IOException
    • createTruncatedHMacExtension

      public static byte[] createTruncatedHMacExtension()
    • createTrustedCAKeysExtensionClient

      public static byte[] createTrustedCAKeysExtensionClient(Vector trustedAuthoritiesList) throws IOException
      Throws:
      IOException
    • createTrustedCAKeysExtensionServer

      public static byte[] createTrustedCAKeysExtensionServer()
    • readALPNExtensionClient

      public static Vector readALPNExtensionClient(byte[] extensionData) throws IOException
      Returns:
      a Vector of ProtocolName
      Throws:
      IOException
    • readALPNExtensionServer

      public static ProtocolName readALPNExtensionServer(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readCertificateAuthoritiesExtension

      public static Vector readCertificateAuthoritiesExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readCertificateTypeExtensionClient

      public static short[] readCertificateTypeExtensionClient(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readCertificateTypeExtensionServer

      public static short readCertificateTypeExtensionServer(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readClientCertificateURLExtension

      public static boolean readClientCertificateURLExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readCompressCertificateExtension

      public static int[] readCompressCertificateExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readConnectionIDExtension

      public static byte[] readConnectionIDExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readCookieExtension

      public static byte[] readCookieExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readEarlyDataIndication

      public static boolean readEarlyDataIndication(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readEarlyDataMaxSize

      public static long readEarlyDataMaxSize(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readEncryptThenMACExtension

      public static boolean readEncryptThenMACExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readExtendedMasterSecretExtension

      public static boolean readExtendedMasterSecretExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readHeartbeatExtension

      public static HeartbeatExtension readHeartbeatExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readKeyShareClientHello

      public static Vector readKeyShareClientHello(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readKeyShareHelloRetryRequest

      public static int readKeyShareHelloRetryRequest(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readKeyShareServerHello

      public static KeyShareEntry readKeyShareServerHello(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readMaxFragmentLengthExtension

      public static short readMaxFragmentLengthExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readOIDFiltersExtension

      public static Hashtable readOIDFiltersExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readPaddingExtension

      public static int readPaddingExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readPostHandshakeAuthExtension

      public static boolean readPostHandshakeAuthExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readPreSharedKeyClientHello

      public static OfferedPsks readPreSharedKeyClientHello(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readPreSharedKeyServerHello

      public static int readPreSharedKeyServerHello(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readPSKKeyExchangeModesExtension

      public static short[] readPSKKeyExchangeModesExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readRecordSizeLimitExtension

      public static int readRecordSizeLimitExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readServerNameExtensionClient

      public static Vector readServerNameExtensionClient(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readServerNameExtensionServer

      public static boolean readServerNameExtensionServer(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSignatureAlgorithmsExtension

      public static Vector readSignatureAlgorithmsExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSignatureAlgorithmsCertExtension

      public static Vector readSignatureAlgorithmsCertExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readStatusRequestExtension

      public static CertificateStatusRequest readStatusRequestExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readStatusRequestV2Extension

      public static Vector readStatusRequestV2Extension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSupportedGroupsExtension

      public static int[] readSupportedGroupsExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSupportedPointFormatsExtension

      public static short[] readSupportedPointFormatsExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSupportedVersionsExtensionClient

      public static ProtocolVersion[] readSupportedVersionsExtensionClient(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readSupportedVersionsExtensionServer

      public static ProtocolVersion readSupportedVersionsExtensionServer(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readTruncatedHMacExtension

      public static boolean readTruncatedHMacExtension(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readTrustedCAKeysExtensionClient

      public static Vector readTrustedCAKeysExtensionClient(byte[] extensionData) throws IOException
      Throws:
      IOException
    • readTrustedCAKeysExtensionServer

      public static boolean readTrustedCAKeysExtensionServer(byte[] extensionData) throws IOException
      Throws:
      IOException