Home | History | Annotate | Download | only in jsse
      1 /*
      2  *  Licensed to the Apache Software Foundation (ASF) under one or more
      3  *  contributor license agreements.  See the NOTICE file distributed with
      4  *  this work for additional information regarding copyright ownership.
      5  *  The ASF licenses this file to You under the Apache License, Version 2.0
      6  *  (the "License"); you may not use this file except in compliance with
      7  *  the License.  You may obtain a copy of the License at
      8  *
      9  *     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 package org.apache.harmony.xnet.provider.jsse;
     19 
     20 /**
     21  *
     22  * This class incapsulates the constants determining the types of handshake
     23  * messages as defined in TLS 1.0 spec., 7.4. Handshake protocol.
     24  * (http://www.ietf.org/rfc/rfc2246.txt)
     25  *
     26  */
     27 public class Handshake {
     28 
     29     /**
     30      *
     31      * hello_request handshake type
     32      */
     33     public static final byte HELLO_REQUEST = 0;
     34 
     35     /**
     36      *
     37      * client_hello handshake type
     38      */
     39     public static final byte CLIENT_HELLO = 1;
     40 
     41     /**
     42      *
     43      * server_hello handshake type
     44      */
     45     public static final byte SERVER_HELLO = 2;
     46 
     47     /**
     48      *
     49      * certificate handshake type
     50      */
     51     public static final byte CERTIFICATE = 11;
     52 
     53     /**
     54      *
     55      * server_key_exchange  handshake type
     56      */
     57     public static final byte SERVER_KEY_EXCHANGE = 12;
     58 
     59     /**
     60      *
     61      * certificate_request handshake type
     62      */
     63     public static final byte CERTIFICATE_REQUEST = 13;
     64 
     65     /**
     66      *
     67      * server_hello_done handshake type
     68      */
     69     public static final byte SERVER_HELLO_DONE = 14;
     70 
     71     /**
     72      *
     73      * certificate_verify handshake type
     74      */
     75     public static final byte CERTIFICATE_VERIFY = 15;
     76 
     77     /**
     78      *
     79      * client_key_exchange handshake type
     80      */
     81     public static final byte CLIENT_KEY_EXCHANGE = 16;
     82 
     83     /**
     84      *
     85      * finished handshake type
     86      */
     87     public static final byte FINISHED = 20;
     88 
     89 }