xjava.security

Class IJCE_Traceable

Known Direct Subclasses:
Cipher, PaddingScheme

(package private) abstract class IJCE_Traceable
extends java.lang.Object

This class is extended by Java Security classes that allow tracing of calls to SPI methods. Tracing is useful when debugging an algorithm implementation, for example.

These methods are not part of the public API; they are intended to be called only from the algorithm classes in this package.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.6 $

Authors:
David Hopwood
Raif S. Naffah

Since:
IJCE 1.0.1

Field Summary

(package private) boolean
tracing

Constructor Summary

IJCE_Traceable(String type)

Method Summary

(package private) void
disableTracing()
Disables tracing of SPI methods for this object.
(package private) void
enableTracing(PrintWriter out)
Enables tracing of calls to SPI methods for this object.
(package private) void
traceMethod(String s)
Traces a method call that will return a result.
(package private) void
traceResult(String s)
Traces the result of a method as a string.
(package private) void
traceResult(int i)
Traces the result of a method as an integer.
(package private) void
traceVoidMethod(String s)
Traces a void method call.

Field Details

tracing

(package private)  boolean tracing

Constructor Details

IJCE_Traceable

(package private)  IJCE_Traceable(String type)

Method Details

disableTracing

(package private)  void disableTracing()
Disables tracing of SPI methods for this object. Returns silently if tracing was not enabled.


enableTracing

(package private)  void enableTracing(PrintWriter out)
Enables tracing of calls to SPI methods for this object. Output is sent to the PrintWriter out.


traceMethod

(package private)  void traceMethod(String s)
Traces a method call that will return a result.


traceResult

(package private)  void traceResult(String s)
Traces the result of a method as a string.


traceResult

(package private)  void traceResult(int i)
Traces the result of a method as an integer.


traceVoidMethod

(package private)  void traceVoidMethod(String s)
Traces a void method call.