Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.net.ssl.provider
Class Handshake  view Handshake download Handshake.java

java.lang.Object
  extended bygnu.javax.net.ssl.provider.Handshake
All Implemented Interfaces:
Constructed

final class Handshake
extends java.lang.Object
implements Constructed


Nested Class Summary
(package private) static interface Handshake.Body
           
private static class Handshake.buffer
           
(package private) static class Handshake.Type
           
 
Field Summary
private  Handshake.Body body
           
private static Handshake.buffer BUF
           
private  Handshake.Type type
           
 
Constructor Summary
(package private) Handshake(Handshake.Type type, Handshake.Body body)
           
 
Method Summary
(package private)  Handshake.Body getBody()
           
(package private)  Handshake.Type getType()
           
(package private) static Handshake read(byte[] buffer)
           
(package private) static Handshake read(byte[] buffer, CipherSuite suite, java.security.PublicKey key)
           
(package private) static Handshake read(java.io.InputStream in)
           
(package private) static Handshake read(java.io.InputStream in, CertificateType certType)
           
(package private) static Handshake read(java.io.InputStream in, CipherSuite suite, java.security.PublicKey key)
           
(package private) static Handshake read(java.io.InputStream in, CipherSuite suite, java.security.PublicKey key, CertificateType certType)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(java.io.OutputStream out)
          Writes this structure's encoded form to the given output stream.
 int write(java.io.OutputStream out, ProtocolVersion version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUF

private static final Handshake.buffer BUF

type

private final Handshake.Type type

body

private final Handshake.Body body
Constructor Detail

Handshake

Handshake(Handshake.Type type,
          Handshake.Body body)
Method Detail

read

static Handshake read(byte[] buffer)
               throws java.io.IOException

read

static Handshake read(byte[] buffer,
                      CipherSuite suite,
                      java.security.PublicKey key)
               throws java.io.IOException

read

static Handshake read(java.io.InputStream in)
               throws java.io.IOException

read

static Handshake read(java.io.InputStream in,
                      CipherSuite suite,
                      java.security.PublicKey key)
               throws java.io.IOException

read

static Handshake read(java.io.InputStream in,
                      CertificateType certType)
               throws java.io.IOException

read

static Handshake read(java.io.InputStream in,
                      CipherSuite suite,
                      java.security.PublicKey key,
                      CertificateType certType)
               throws java.io.IOException

write

public void write(java.io.OutputStream out)
Description copied from interface: Constructed
Writes this structure's encoded form to the given output stream.

Specified by:
write in interface Constructed

write

public int write(java.io.OutputStream out,
                 ProtocolVersion version)
          throws java.io.IOException

getType

Handshake.Type getType()

getBody

Handshake.Body getBody()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).