Package com.sun.identity.coretoken
Class CoreTokenUtils
- java.lang.Object
-
- com.sun.identity.coretoken.CoreTokenUtils
-
public class CoreTokenUtils extends Object
This class provides utility methods for Core Token Service.
-
-
Constructor Summary
Constructors Constructor Description CoreTokenUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubjectgetAdminSubject()static booleanisTokenExpired(String tokenExpiry)Checks if the token expired
-
-
-
Field Detail
-
debug
public static Debug debug
-
-
Method Detail
-
getAdminSubject
public static Subject getAdminSubject()
-
isTokenExpired
public static boolean isTokenExpired(String tokenExpiry) throws CoreTokenException
Checks if the token expired- Parameters:
tokenExpiry- Token expiry as UTC time string.- Returns:
- true if the token expired, false otherwise
- Throws:
CoreTokenException- if failed to parse the token expiry string.
-
-