public class TokenUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static ApplicationToken |
createApplicationToken(LibrarySession session,
ApplicationTokenDefinition tokenDef)
Creates a new ApplicationToken from the specified definition.
|
static void |
deleteApplicationToken(LibrarySession session,
String tokenValue)
Deletes a new ApplicationToken matching the specified token value,
if one exists.
|
static ApplicationToken |
findApplicationToken(LibrarySession session,
String tokenValue)
Finds a new ApplicationToken matching the specified token value.
|
public static ApplicationToken createApplicationToken(LibrarySession session, ApplicationTokenDefinition tokenDef) throws IfsException
session
- the session contexttokenDef
- the definition for the desired tokenIfsException
- 35400: if an object with the specified
token value already exists
public static ApplicationToken findApplicationToken(LibrarySession session, String tokenValue) throws IfsException
Returns null if there is no matching ApplicationToken, or if that token has expired.
session
- the session contexttokenValue
- the token valueIfsException
- if the operation failspublic static void deleteApplicationToken(LibrarySession session, String tokenValue) throws IfsException
No exception occurs if the specified token doesn not exist.
session
- the session contexttokenValue
- the token valueIfsException
- if the operation failsCopyright © 2023. All rights reserved.