public class TokenLogUtils extends Object
TokenLogUtils
class defines methods which are used by
Core Token Service to write access and erro logs.Modifier and Type | Field and Description |
---|---|
static String |
EXPIRED_TOKEN_DELETE_SUCCESS |
static String |
TOKEN_CREATE_SUCCESS |
static String |
TOKEN_DELETE_SUCCESS |
static String |
TOKEN_NAME_ID |
static String |
TOKEN_READ_SUCCESS |
static String |
TOKEN_SEARCH_SUCCESS |
static String |
TOKEN_UPDATE_SUCCESS |
static String |
UNABLE_TO_CREATE_TOKEN |
static String |
UNABLE_TO_DELETE_TOKEN |
static String |
UNABLE_TO_READ_TOKEN |
static String |
UNABLE_TO_SEARCH_TOKEN |
static String |
UNABLE_TO_UPDATE_TOKEN |
Constructor and Description |
---|
TokenLogUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
access(Level level,
String msgid,
String[] data,
SSOToken session,
String nameId)
Logs message to core token access logs.
|
static void |
error(Level level,
String msgid,
String[] data,
SSOToken session,
String nameId)
Logs error messages to core token error log.
|
static boolean |
isAccessLoggable(Level level)
Checks if an access message of the given level would actually be logged
by this logger.
|
static boolean |
isErrorLoggable(Level level)
Checks if an error message of the given level would actually be logged
by this logger.
|
public static final String TOKEN_CREATE_SUCCESS
public static final String TOKEN_READ_SUCCESS
public static final String TOKEN_UPDATE_SUCCESS
public static final String TOKEN_SEARCH_SUCCESS
public static final String TOKEN_DELETE_SUCCESS
public static final String EXPIRED_TOKEN_DELETE_SUCCESS
public static final String UNABLE_TO_CREATE_TOKEN
public static final String UNABLE_TO_READ_TOKEN
public static final String UNABLE_TO_UPDATE_TOKEN
public static final String UNABLE_TO_SEARCH_TOKEN
public static final String UNABLE_TO_DELETE_TOKEN
public static final String TOKEN_NAME_ID
public static void access(Level level, String msgid, String[] data, SSOToken session, String nameId)
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 : msgid
- the message or a message identifier.data
- string array of dynamic data to be replaced in the message.session
- the User's session objectnameId
- value for NameID logging fieldpublic static void error(Level level, String msgid, String[] data, SSOToken session, String nameId)
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 : 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 fieldpublic static boolean isAccessLoggable(Level level)
level
- a message logging level defined in java.util.logging.Level.public static boolean isErrorLoggable(Level level)
level
- a message logging level defined in java.util.logging.Level.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.