java.lang.Object
com.ibm.crypto.hdwrCCA.provider.Debug
A utility class for debugging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefines a mask containing all of the possible types.static final longDefines an application programming interface (API) trace point.static final longDefines a callback method trace point.static final longDefines the default message types.static final longDefines method entry trace points.static final longDeprecated.static final longDefines an error message.static final longDefines an error message.static final longDefines an error or exception condition trace point.static final longDefines method exit trace points.static final longDefines a fatal message.static final longEquivalent to Level.FINEstatic final longEquivalent to Level.FINERstatic final longEquivalent to Level.FINESTstatic final longDefines an informational message.static final longDefines an informational message.static final longDefines a "low-detail" trace point.static final longDefines a "medium-detail" trace point.static final longDefines a "high-detail" trace point.static final longDefines a miscellaneous data trace point.static final longstatic final longDefines an object creation (constructor) trace point.static final longDefines an object deletion (destructor) trace point.static final longDefines a performance-monitoring trace point.static final longDefines aprivatemethod trace point.static final longDefines a public method trace point.static final longDefines a static method trace point.static final longDefines a service code trace point.static final longDefines a warning message.static final longDefines a warning message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidstatic DebuggetInstance(String option) Get a Debug object corresponding to whether or not the given option is set.static DebuggetInstance(String option, String prefix) Get a Debug object corresponding to whether or not the given option is set.static voidHelp()static booleanTrue if the system property "security.debug" contains the string "option".static LevellongToLevel(long type) static intsafeLongToInt(long l) voidstackTrace(long type, Object loggingClass, String loggingMethod) voidstackTrace(long type, Object loggingClass, String loggingMethod, String text) voidvoidvoidvoidstatic Stringreturn a hexadecimal printed representation of the specified BigInteger object.static StringtoString(byte[] b)
-
Field Details
-
TYPE_NONE
public static final long TYPE_NONE- See Also:
-
TYPE_ALL
public static final long TYPE_ALLDefines a mask containing all of the possible types.- See Also:
-
TYPE_FINE
public static final long TYPE_FINEEquivalent to Level.FINE -
TYPE_FINER
public static final long TYPE_FINEREquivalent to Level.FINER -
TYPE_FINEST
public static final long TYPE_FINESTEquivalent to Level.FINEST -
TYPE_INFO
public static final long TYPE_INFODefines an informational message. Use this type to indicate conditions that are worth noting but that do not require a user to take any precautions or perform an action. Sparing use of this type is suggested. An informational message is less severe than a warning message. This value is the same asTYPE_INFORMATION.- See Also:
-
TYPE_INFORMATION
public static final long TYPE_INFORMATIONDefines an informational message. This value is the same asTYPE_INFO.- See Also:
-
TYPE_WARN
public static final long TYPE_WARNDefines a warning message. Use this type to inform a user that an abnormal condition has been detected. The particular condition will dictate whether the user has to take any action. A warning message is less severe than an error message. This value is the same asTYPE_WARNING.- See Also:
-
TYPE_WARNING
public static final long TYPE_WARNINGDefines a warning message. This value is the same asTYPE_WARN.- See Also:
-
TYPE_ERR
public static final long TYPE_ERRDefines an error message. Use this type to inform the user of a serious failure in the execution of a program. An error message is less severe than a fatal message. This value is the same asTYPE_ERROR.Note:
TYPE_ERRis included in the default mask of a Logger and should not be confused withTYPE_ERROR_EXC, which is intended to be used for trace records by Trace.- See Also:
-
TYPE_ERROR
public static final long TYPE_ERRORDefines an error message. This value is the same asTYPE_ERR.Note:
TYPE_ERRis included in the default mask of a Logger and should not be confused withTYPE_ERROR_EXC, which is intended to be used for trace records by Trace.- See Also:
-
TYPE_FATAL
public static final long TYPE_FATALDefines a fatal message. Use this type to report an error from which the program cannot recover. A fatal message is the most severe message.- See Also:
-
TYPE_DEFAULT_MESSAGE
public static final long TYPE_DEFAULT_MESSAGEDefines the default message types. The value is(TYPE_INFO | TYPE_WARN | TYPE_ERR | TYPE_FATAL.- See Also:
-
TYPE_PUBLIC
public static final long TYPE_PUBLICDefines a public method trace point. This typically includespackageandprotectedscope, as all of these methods may be used by other classes. -
TYPE_API
public static final long TYPE_APIDefines an application programming interface (API) trace point.- See Also:
-
TYPE_CALLBACK
public static final long TYPE_CALLBACKDefines a callback method trace point. Callbacks are typically used in listener classes, which have registered with another object to be notified when a specific record occurs.- See Also:
-
TYPE_ENTRY_EXIT
Deprecated.TYPE_ENTRY_EXIThas been split intoTYPE_ENTRYandTYPE_EXIT.Defines method entry and exit trace points.- See Also:
-
TYPE_ENTRY
public static final long TYPE_ENTRYDefines method entry trace points. An entry trace point should be added to every significant method to track movement through an application. Trivial methods, such as getters and setters, generally don't have entry or exit trace points because of the added overhead.- See Also:
-
TYPE_EXIT
public static final long TYPE_EXITDefines method exit trace points. An exit trace point should be added to every significant method to track movement through an application. Trivial methods, such as getters and setters, generally don't have entry or exit trace points because of the added overhead.- See Also:
-
TYPE_ERROR_EXC
public static final long TYPE_ERROR_EXCDefines an error or exception condition trace point. This type can be used to trace any exceptional condition.Note:
TYPE_ERROR_EXCis included in the default mask of a Trace and should not be confused withTYPE_ERROR, which is intended to be used for message records by Logger.- See Also:
-
TYPE_MISC_DATA
public static final long TYPE_MISC_DATADefines a miscellaneous data trace point. This type can be used to trace information not covered by any other trace type.- See Also:
-
TYPE_OBJ_CREATE
public static final long TYPE_OBJ_CREATEDefines an object creation (constructor) trace point.- See Also:
-
TYPE_OBJ_DELETE
public static final long TYPE_OBJ_DELETEDefines an object deletion (destructor) trace point. This type would generally be used in afinalizemethod.- See Also:
-
TYPE_PRIVATE
public static final long TYPE_PRIVATEDefines aprivatemethod trace point. Private trace points would be defined in methods with private scope.- See Also:
-
TYPE_STATIC
public static final long TYPE_STATICDefines a static method trace point.- See Also:
-
TYPE_SVC
public static final long TYPE_SVCDefines a service code trace point. Service code is generally "low-level" code which provides commonly used services to other classes.- See Also:
-
TYPE_PERF
public static final long TYPE_PERFDefines a performance-monitoring trace point. This type can be used to measure the execution time of selected sections of an application.- See Also:
-
TYPE_LEVEL1
public static final long TYPE_LEVEL1Defines a "low-detail" trace point. Some trace implementations prefer the notion of a "trace level," in which level 1 implies minimal detail, level 2 implies more detail and level 3 implies the most detail. In such a system, these three types would be used exclusively.- See Also:
-
TYPE_LEVEL2
public static final long TYPE_LEVEL2Defines a "medium-detail" trace point. Some trace implementations prefer the notion of a "trace level," in which level 1 implies minimal detail, level 2 implies more detail and level 3 implies the most detail. In such a system, these three types would be used exclusively.- See Also:
-
TYPE_LEVEL3
public static final long TYPE_LEVEL3Defines a "high-detail" trace point. Some trace implementations prefer the notion of a "trace level," in which level 1 implies minimal detail, level 2 implies more detail and level 3 implies the most detail. In such a system, these three types would be used exclusively.- See Also:
-
-
Constructor Details
-
Debug
-
-
Method Details
-
Help
public static void Help() -
getInstance
Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be the same as option. -
getInstance
Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be prefix. -
isOn
True if the system property "security.debug" contains the string "option". -
data
-
entry
-
entry
-
entry
-
entry
-
exception
-
exit
-
exit
-
exit
-
exit
-
exit
-
exit
-
exit
-
exit
-
exit
-
exit
-
stackTrace
-
stackTrace
-
text
-
text
-
text
-
text
-
toHexString
return a hexadecimal printed representation of the specified BigInteger object. the value is formatted to fit on lines of at least 75 characters, with embedded newlines. Words are separated for readability, with eight words (32 bytes) per line. -
toString
-
longToLevel
-
safeLongToInt
public static int safeLongToInt(long l)
-
TYPE_ENTRY_EXIThas been split intoTYPE_ENTRYandTYPE_EXIT.