Class GetTimeLeftActionHandler

  • All Implemented Interfaces:
    ActionHandler

    public class GetTimeLeftActionHandler
    extends Object
    implements ActionHandler
    Handler for 'getMaxTime' action - from CREST 12.0.0 onwards this means 'get remaining session time'.
    • Constructor Detail

      • GetTimeLeftActionHandler

        public GetTimeLeftActionHandler​(SessionResourceUtil sessionResourceUtil)
        Constructs a GetTimeLeftActionHandler instance
        Parameters:
        sessionResourceUtil - An instance of the session resource manager
    • Method Detail

      • handle

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> handle​(String tokenId,
                                                                                                                                                         org.forgerock.services.context.Context context,
                                                                                                                                                         org.forgerock.json.resource.ActionRequest request)
        Specified by:
        handle in interface ActionHandler