Package wt.session

Interface SessionManagerSvr

All Known Implementing Classes:
StandardSessionManager

public interface SessionManagerSvr


Supported API: true

Extendable: false
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if access control was not reset through a 'setAccessEnforced (false)' call; returns false otherwise.
    boolean
    setAccessEnforced(boolean enforce)
    Suspends or resumes all access invalid input: '&' authorization enforcement.
  • Method Details

    • setAccessEnforced

      boolean setAccessEnforced(boolean enforce)
      Suspends or resumes all access invalid input: '&' authorization enforcement. If the argument is false then access/authorization enforcement is suspended; otherwise it is resumed. The method returns true if the access/authorization checks are being enforced or false otherwise.

      This method can be used to temporarily suspend access/authorization enforcement using a try/finally block, in which the enforcement is suspended in the try block and restored in the finally block. The return value can be used to restore the value to whatever it was before the enforcement was suspended.

      Supported API: true

      Parameters:
      enforce -
      Returns:
      boolean
    • isAccessEnforced

      boolean isAccessEnforced()
      Returns true if access control was not reset through a 'setAccessEnforced (false)' call; returns false otherwise. The isAccessEnforced retrieves the state of access enforcement as set or reset by the setAccessEnforced method. It has no visibility to the wt.access.enforce property (in wt.properties).

      Supported API: true
      Returns:
      boolean