COM.claymoresystems.ptls

Class SSLDebug

public class SSLDebug extends Object

This class is intended for use in debugging PureTLS.

By default, no debugging data is logged to the console, but you can exert some selective control over what types of data will be logged by using setDebug(). The taxonomy of data types is somewhat idiosyncratic and the exact places that debugging callouts have been inserted is somewhat dependent on where problems have been found in the past.

This class is largely useful for sending message traces to the developers.

Field Summary
static intDEBUG_ALL
Print out all debugging information available.
static intDEBUG_CERT
Certificate processing debugging
static intDEBUG_CODEC
Print codec activities to the console.
static intDEBUG_CRYPTO
Print out the input and output for crypto operations.
static intDEBUG_HANDSHAKE
Print out handshake results
static intDEBUG_INIT
Print out commentary during the initialization phase, including keyfile loading
static intDEBUG_MSG
This provides some basic diagnostics about message processing.
static intDEBUG_STATE
Print out state changes in the handshake.
Method Summary
static voiddebug(int type, String val)
static voiddebug(int type, String label, byte[] hd)
static booleangetDebug(int flag)
static voidsetDebug(int flag)
Set the debugging value.

Field Detail

DEBUG_ALL

public static final int DEBUG_ALL
Print out all debugging information available. This produces incredibly copious output

DEBUG_CERT

public static final int DEBUG_CERT
Certificate processing debugging

DEBUG_CODEC

public static final int DEBUG_CODEC
Print codec activities to the console. This allows you to watch low-level PDUs and basic types being decoded

DEBUG_CRYPTO

public static final int DEBUG_CRYPTO
Print out the input and output for crypto operations. This is useful for comparing the operation of PureTLS to another TLS implementation

DEBUG_HANDSHAKE

public static final int DEBUG_HANDSHAKE
Print out handshake results

DEBUG_INIT

public static final int DEBUG_INIT
Print out commentary during the initialization phase, including keyfile loading

DEBUG_MSG

public static final int DEBUG_MSG
This provides some basic diagnostics about message processing. There isn't as much information being logged here as one would like

DEBUG_STATE

public static final int DEBUG_STATE
Print out state changes in the handshake. This is useful for diagnosing problems in the handshake state machine. Unfortunately, these are currently printed as integers which means you need to examine the source to see what's going on

Method Detail

debug

public static void debug(int type, String val)

debug

public static void debug(int type, String label, byte[] hd)

getDebug

public static boolean getDebug(int flag)

setDebug

public static void setDebug(int flag)
Set the debugging value.

Parameters: flag the bitwise OR of the debugging values of your choice or 0 for none

Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.