public final class PoolKeyHolder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PoolKeyHolder.Session |
Modifier and Type | Method and Description |
---|---|
static int |
add(int token,
com.lexmark.saperion.remote.common.authentication.Credentials key)
Stores the given TokenOrCredentialKey.
|
static PoolKeyHolder.Session |
get(int token)
Gets the TokenOrCredentialKey by the given token.
|
static void |
initSessionCleaner(Properties properties) |
static void |
logStatistic()
Logs the current content of the token map to the logger using DEBUG level.
|
static void |
remove(int token)
Removes the key by the given token.
|
static void |
stopSessionCleaner() |
public static void initSessionCleaner(Properties properties) throws Exception
Exception
public static void stopSessionCleaner()
public static int add(int token, com.lexmark.saperion.remote.common.authentication.Credentials key)
token
- the token to identify the given key.key
- the key to store.public static PoolKeyHolder.Session get(int token)
token
- the token to get the key for.public static void remove(int token)
token
- the token to remove the key for.public static void logStatistic()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.