Class TokenLogUtils


  • public class TokenLogUtils
    extends Object
    The TokenLogUtils class defines methods which are used by Core Token Service to write access and erro logs.
    • Constructor Detail

      • TokenLogUtils

        public TokenLogUtils()
    • Method Detail

      • access

        public static void access​(Level level,
                                  String msgid,
                                  String[] data,
                                  SSOToken session,
                                  String nameId)
        Logs message to core token access logs.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
        session - the User's session object
        nameId - value for NameID logging field
      • error

        public static void error​(Level level,
                                 String msgid,
                                 String[] data,
                                 SSOToken session,
                                 String nameId)
        Logs error messages to core token error log.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
        session - the User's Session object.
        nameId - value for NameID logging field
      • isAccessLoggable

        public static boolean isAccessLoggable​(Level level)
        Checks if an access message of the given level would actually be logged by this logger. This check is based on the Logger's effective level.
        Parameters:
        level - a message logging level defined in java.util.logging.Level.
        Returns:
        true if the given message level is currently being logged.
      • isErrorLoggable

        public static boolean isErrorLoggable​(Level level)
        Checks if an error message of the given level would actually be logged by this logger. This check is based on the Logger's effective level.
        Parameters:
        level - a message logging level defined in java.util.logging.Level.
        Returns:
        true if the given message level is currently being logged.