Package com.sun.identity.session.util
Class RestrictedTokenHelper
- java.lang.Object
-
- com.sun.identity.session.util.RestrictedTokenHelper
-
public class RestrictedTokenHelper extends Object
This is a Utility class to create the restricted token using the context
-
-
Constructor Summary
Constructors Constructor Description RestrictedTokenHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisRestricted(SSOToken token)Returns true if the SSOToken is restricted, false otherwisestatic SSOTokenresolveRestrictedToken(String sid, Object context)Create a restricted token for the given context
-
-
-
Method Detail
-
resolveRestrictedToken
public static SSOToken resolveRestrictedToken(String sid, Object context) throws Exception
Create a restricted token for the given context- Parameters:
sid- restricted tokenIDcontext- check the restriction for the given context- Returns:
- SSOToken a restricted token if present for the given sid
- Throws:
Exception- if there was an error
-
isRestricted
public static boolean isRestricted(SSOToken token) throws SSOException
Returns true if the SSOToken is restricted, false otherwise- Parameters:
token- SSOToken to be checked for the presence of restriction property- Returns:
- true if the token is a restricted token, false otherwise
- Throws:
SSOException- is thrown if the there was an error
-
-