01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * @author Boris Kuznetsov
20: * @version $Revision$
21: */package org.apache.harmony.xnet.provider.jsse;
22:
23: /**
24: *
25: * This class incapsulates the constants determining the types of handshake
26: * messages as defined in TLS 1.0 spec., 7.4. Handshake protocol.
27: * (http://www.ietf.org/rfc/rfc2246.txt)
28: *
29: */
30: public class Handshake {
31:
32: /**
33: *
34: * hello_request handshake type
35: */
36: public static final byte HELLO_REQUEST = 0;
37:
38: /**
39: *
40: * client_hello handshake type
41: */
42: public static final byte CLIENT_HELLO = 1;
43:
44: /**
45: *
46: * server_hello handshake type
47: */
48: public static final byte SERVER_HELLO = 2;
49:
50: /**
51: *
52: * certificate handshake type
53: */
54: public static final byte CERTIFICATE = 11;
55:
56: /**
57: *
58: * server_key_exchange handshake type
59: */
60: public static final byte SERVER_KEY_EXCHANGE = 12;
61:
62: /**
63: *
64: * certificate_request handshake type
65: */
66: public static final byte CERTIFICATE_REQUEST = 13;
67:
68: /**
69: *
70: * server_hello_done handshake type
71: */
72: public static final byte SERVER_HELLO_DONE = 14;
73:
74: /**
75: *
76: * certificate_verify handshake type
77: */
78: public static final byte CERTIFICATE_VERIFY = 15;
79:
80: /**
81: *
82: * client_key_exchange handshake type
83: */
84: public static final byte CLIENT_KEY_EXCHANGE = 16;
85:
86: /**
87: *
88: * finished handshake type
89: */
90: public static final byte FINISHED = 20;
91:
92: }
|