Class ConcurrentAccessException

  • All Implemented Interfaces:

    public class ConcurrentAccessException
    extends AccountException
    Thrown when an authentication attempt has been received for an account that has already been authenticated (i.e. logged-in), and the system is configured to prevent such concurrent access.

    This is useful when an application must ensure that only one person is logged-in to a single account at any given time.

    Sometimes account names and passwords are lazily given away to many people for easy access to a system. Such behavior is undesirable in systems where users are accountable for their actions, such as in government applications, or when licensing agreements must be maintained, such as those which only allow 1 user per paid license.

    By disallowing concurrent access, such systems can ensure that each authenticated session corresponds to one and only one user at any given time.

    Since:
    0.1
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConcurrentAccessException()
      Creates a new ConcurrentAccessException.
       message)
      Constructs a new ConcurrentAccessException.
       message,  cause)
      Constructs a new ConcurrentAccessException.
       cause)
      Constructs a new ConcurrentAccessException.
    • Method Summary

      • Methods inherited from class java.lang.

        , , , , , , , , , , , ,
      • Methods inherited from class java.lang.

        , , , , , , , , ,
    • Constructor Detail

      • ConcurrentAccessException

        public ConcurrentAccessException()
        Creates a new ConcurrentAccessException.
      • ConcurrentAccessException

        public ConcurrentAccessException​( message)
        Constructs a new ConcurrentAccessException.
        Parameters:
        message - the reason for the exception
      • ConcurrentAccessException

        public ConcurrentAccessException​( cause)
        Constructs a new ConcurrentAccessException.
        Parameters:
        cause - the underlying Throwable that caused this exception to be thrown.
      • ConcurrentAccessException

        public ConcurrentAccessException​( message,
                                          cause)
        Constructs a new ConcurrentAccessException.
        Parameters:
        message - the reason for the exception
        cause - the underlying Throwable that caused this exception to be thrown.