com.ibm.security.krb5
Class Krb5Debug
- java.lang.Object
com.ibm.security.krb5.Krb5Debug
- public class Krb5Debug
- extends java.lang.Object
All debug information is output to the Java System.out, normally the standard output of the process.
Krb5Debugging is turned on or off by setting the Java property
com.ibm.security.krb5.server.debug
. Setting the property to
all
turns on debugging for all categories, and setting it to
off
turns off debugging completely. The property may be set to
one or more of the following to turn on debugging for particular
categories. Multiple categories should be comma-separated.
-
kdc
: top-level kdc operations, including network and communications operations. The default if the property is not set at all or is set to nothing -
config|cfg
: configuration operations -
exception|exc
: exceptions -
defaults|defs
: defaults -
directory|dir|ldap
: LDAP
The property com.ibm.security.krb5.server.debug
is read and
the chosen categories set statically. In other words, the chosen categories
are applicable to the entire JVM.
Krb5Debugging can also be controlled programatically using the
set
and unset
methods. Any changes made affects
the whole JVM.
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ALL
Turns on debugging for all categories.
|
|
AS
DOCUMENT ME!
|
|
CCACHE
DOCUMENT ME!
|
|
CONFIG
DOCUMENT ME!
|
|
CRYPTO
DOCUMENT ME!
|
|
EXCEPTION
DOCUMENT ME!
|
|
KDC
DOCUMENT ME!
|
|
KTAB
DOCUMENT ME!
|
|
LAST
DOCUMENT ME!
|
|
OFF
DOCUMENT ME!
|
|
RCACHE
DOCUMENT ME!
|
|
TGS
DOCUMENT ME!
|
|
TOOL
DOCUMENT ME!
|
|
UTIL
DOCUMENT ME!
|
Constructor Summary
Constructor and Description |
---|
Krb5Debug()
The default constructor.
|
Krb5Debug(java.lang.String prefix)
The default constructor.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
exception(int category,java.lang.Exception exc)
Prints the stack trace from the specified exception if both the
specified category and exception category are enabled.
|
|
on()
Tests if debugging is on for any category.
|
|
on(int category)
Tests if debugging is on for the specified category.
|
|
out(int category,byte[] msg)
Displays the specified message if the specified category is on.
|
|
out(int category,java.lang.Exception exc)
Prints the the specified exception if both the specified category and
exception category are enabled.
|
|
out(int category,java.lang.String msg)
Displays the specified message if the specified category is on.
|
|
set(int option)
Turns on debugging for the specified category.
|
|
toString()
Returns a sting representation of this Krb5Debug object instance.
|
|
unset(int option)
Turns off debugging for the specified category.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
ALL
- public static final int ALL
OFF
- public static final int OFF
CCACHE
- public static final int CCACHE
AS
- public static final int AS
CONFIG
- public static final int CONFIG
EXCEPTION
- public static final int EXCEPTION
CRYPTO
- public static final int CRYPTO
KTAB
- public static final int KTAB
KDC
- public static final int KDC
RCACHE
- public static final int RCACHE
TGS
- public static final int TGS
TOOL
- public static final int TOOL
UTIL
- public static final int UTIL
LAST
- public static final int LAST
Constructor Detail
Krb5Debug
- public Krb5Debug()
com.ibm.security.krb5.server.debug
property.
Krb5Debug
- public Krb5Debug(java.lang.String prefix)
com.ibm.security.krb5.server.debug
property.
prefix
- DOCUMENT ME! Method Detail
out
- public void out(int category,
- java.lang.String msg)
category
- DOCUMENT ME! msg
- DOCUMENT ME! out
- public void out(int category,
- byte[] msg)
category
- DOCUMENT ME! msg
- DOCUMENT ME! on
- public static boolean on()
on
- public static boolean on(int category)
category
- DOCUMENT ME! set
- public void set(int option)
option
- DOCUMENT ME! unset
- public void unset(int option)
option
- DOCUMENT ME! toString
- public java.lang.String toString( )
toString
in class java.lang.Object
out
- public void out(int category,
- java.lang.Exception exc)
category
- DOCUMENT ME! exc
- DOCUMENT ME! exception
- public void exception(int category,
- java.lang.Exception exc)
category
- DOCUMENT ME! exc
- DOCUMENT ME!