enum SSLHandshake extends Enum<SSLHandshake> implements SSLConsumer, HandshakeProducer
| 限定符和类型 | 类和说明 |
|---|---|
(专用程序包) static class |
SSLHandshake.HandshakeMessage
A (transparent) specification of handshake message.
|
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) Map.Entry<HandshakeAbsence,ProtocolVersion[]>[] |
handshakeAbsences |
(专用程序包) Map.Entry<SSLConsumer,ProtocolVersion[]>[] |
handshakeConsumers |
(专用程序包) Map.Entry<HandshakeProducer,ProtocolVersion[]>[] |
handshakeProducers |
(专用程序包) byte |
id |
(专用程序包) String |
name |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
consume(ConnectionContext context,
ByteBuffer message) |
private SSLConsumer |
getHandshakeConsumer(ConnectionContext context) |
private HandshakeProducer |
getHandshakeProducer(ConnectionContext context) |
(专用程序包) static boolean |
isKnown(byte id) |
(专用程序包) static void |
kickstart(HandshakeContext context) |
(专用程序包) static String |
nameOf(byte id) |
byte[] |
produce(ConnectionContext context,
SSLHandshake.HandshakeMessage message) |
String |
toString() |
static SSLHandshake |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SSLHandshake[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SSLHandshake HELLO_REQUEST
public static final SSLHandshake CLIENT_HELLO
public static final SSLHandshake SERVER_HELLO
public static final SSLHandshake HELLO_RETRY_REQUEST
public static final SSLHandshake NEW_SESSION_TICKET
public static final SSLHandshake END_OF_EARLY_DATA
public static final SSLHandshake ENCRYPTED_EXTENSIONS
public static final SSLHandshake CERTIFICATE
public static final SSLHandshake SERVER_KEY_EXCHANGE
public static final SSLHandshake CERTIFICATE_REQUEST
public static final SSLHandshake SERVER_HELLO_DONE
public static final SSLHandshake CERTIFICATE_VERIFY
public static final SSLHandshake CLIENT_KEY_EXCHANGE
public static final SSLHandshake FINISHED
public static final SSLHandshake CERTIFICATE_URL
public static final SSLHandshake CERTIFICATE_STATUS
public static final SSLHandshake SUPPLEMENTAL_DATA
public static final SSLHandshake KEY_UPDATE
public static final SSLHandshake MESSAGE_HASH
public static final SSLHandshake NOT_APPLICABLE
final byte id
final String name
final Map.Entry<SSLConsumer,ProtocolVersion[]>[] handshakeConsumers
final Map.Entry<HandshakeProducer,ProtocolVersion[]>[] handshakeProducers
final Map.Entry<HandshakeAbsence,ProtocolVersion[]>[] handshakeAbsences
public static SSLHandshake[] values()
for (SSLHandshake c : SSLHandshake.values()) System.out.println(c);
public static SSLHandshake valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public void consume(ConnectionContext context, ByteBuffer message) throws IOException
consume 在接口中 SSLConsumerIOExceptionprivate SSLConsumer getHandshakeConsumer(ConnectionContext context)
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException
produce 在接口中 HandshakeProducerIOExceptionprivate HandshakeProducer getHandshakeProducer(ConnectionContext context)
public String toString()
toString 在类中 Enum<SSLHandshake>static String nameOf(byte id)
static boolean isKnown(byte id)
static final void kickstart(HandshakeContext context) throws IOException
IOExceptionCopyright © 2023. All rights reserved.