public class TlsUtils extends Object
Constructor and Description |
---|
TlsUtils() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkVersion(byte[] readVersion,
TlsProtocolHandler handler) |
protected static void |
checkVersion(InputStream is,
TlsProtocolHandler handler) |
protected static byte[] |
PRF(byte[] secret,
String asciiLabel,
byte[] seed,
int size) |
protected static void |
readFully(byte[] buf,
InputStream is) |
protected static byte[] |
readOpaque16(InputStream is) |
protected static byte[] |
readOpaque8(InputStream is) |
protected static int |
readUint16(InputStream is) |
protected static int |
readUint24(InputStream is) |
protected static long |
readUint32(InputStream is) |
protected static short |
readUint8(InputStream is) |
protected static void |
writeGMTUnixTime(byte[] buf,
int offset) |
protected static void |
writeOpaque16(byte[] buf,
OutputStream os) |
protected static void |
writeOpaque24(byte[] buf,
OutputStream os) |
protected static void |
writeOpaque8(byte[] buf,
OutputStream os) |
protected static void |
writeUint16(int i,
byte[] buf,
int offset) |
protected static void |
writeUint16(int i,
OutputStream os) |
protected static void |
writeUint16Array(int[] uints,
OutputStream os) |
protected static void |
writeUint24(int i,
byte[] buf,
int offset) |
protected static void |
writeUint24(int i,
OutputStream os) |
protected static void |
writeUint32(long i,
byte[] buf,
int offset) |
protected static void |
writeUint32(long i,
OutputStream os) |
protected static void |
writeUint64(long i,
byte[] buf,
int offset) |
protected static void |
writeUint64(long i,
OutputStream os) |
protected static void |
writeUint8(short i,
byte[] buf,
int offset) |
protected static void |
writeUint8(short i,
OutputStream os) |
protected static void |
writeUint8Array(short[] uints,
OutputStream os) |
protected static void |
writeVersion(byte[] buf,
int offset) |
protected static void |
writeVersion(OutputStream os) |
protected static void writeUint8(short i, OutputStream os) throws IOException
IOException
protected static void writeUint8(short i, byte[] buf, int offset)
protected static void writeUint16(int i, OutputStream os) throws IOException
IOException
protected static void writeUint16(int i, byte[] buf, int offset)
protected static void writeUint24(int i, OutputStream os) throws IOException
IOException
protected static void writeUint24(int i, byte[] buf, int offset)
protected static void writeUint32(long i, OutputStream os) throws IOException
IOException
protected static void writeUint32(long i, byte[] buf, int offset)
protected static void writeUint64(long i, OutputStream os) throws IOException
IOException
protected static void writeUint64(long i, byte[] buf, int offset)
protected static void writeOpaque8(byte[] buf, OutputStream os) throws IOException
IOException
protected static void writeOpaque16(byte[] buf, OutputStream os) throws IOException
IOException
protected static void writeOpaque24(byte[] buf, OutputStream os) throws IOException
IOException
protected static void writeUint8Array(short[] uints, OutputStream os) throws IOException
IOException
protected static void writeUint16Array(int[] uints, OutputStream os) throws IOException
IOException
protected static short readUint8(InputStream is) throws IOException
IOException
protected static int readUint16(InputStream is) throws IOException
IOException
protected static int readUint24(InputStream is) throws IOException
IOException
protected static long readUint32(InputStream is) throws IOException
IOException
protected static void readFully(byte[] buf, InputStream is) throws IOException
IOException
protected static byte[] readOpaque8(InputStream is) throws IOException
IOException
protected static byte[] readOpaque16(InputStream is) throws IOException
IOException
protected static void checkVersion(byte[] readVersion, TlsProtocolHandler handler) throws IOException
IOException
protected static void checkVersion(InputStream is, TlsProtocolHandler handler) throws IOException
IOException
protected static void writeGMTUnixTime(byte[] buf, int offset)
protected static void writeVersion(OutputStream os) throws IOException
IOException
protected static void writeVersion(byte[] buf, int offset) throws IOException
IOException
protected static byte[] PRF(byte[] secret, String asciiLabel, byte[] seed, int size)
Copyright © 2015. All rights reserved.