java.lang.Object
gnu.javax.net.ssl.provider.Handshake
- All Implemented Interfaces:
- Constructed
- final class Handshake
- extends java.lang.Object
- implements Constructed
BUF
private static final Handshake.buffer BUF
type
private final Handshake.Type type
body
private final Handshake.Body body
Handshake
Handshake(Handshake.Type type,
Handshake.Body body)
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())
.