Class RestrictedTokenHelper


  • public class RestrictedTokenHelper
    extends Object
    This is a Utility class to create the restricted token using the context
    • Constructor Detail

      • RestrictedTokenHelper

        public RestrictedTokenHelper()
    • Method Detail

      • resolveRestrictedToken

        public static SSOToken resolveRestrictedToken​(String sid,
                                                      Object context)
                                               throws Exception
        Create a restricted token for the given context
        Parameters:
        sid - restricted tokenID
        context - 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