|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.shiro.ShiroException org.apache.shiro.authc.AuthenticationException org.apache.shiro.authc.AccountException org.apache.shiro.authc.ConcurrentAccessException
public class ConcurrentAccessException
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.
Constructor Summary | |
---|---|
ConcurrentAccessException()
Creates a new ConcurrentAccessException. |
|
ConcurrentAccessException(String message)
Constructs a new ConcurrentAccessException. |
|
ConcurrentAccessException(String message,
Throwable cause)
Constructs a new ConcurrentAccessException. |
|
ConcurrentAccessException(Throwable cause)
Constructs a new ConcurrentAccessException. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConcurrentAccessException()
public ConcurrentAccessException(String message)
message
- the reason for the exceptionpublic ConcurrentAccessException(Throwable cause)
cause
- the underlying Throwable that caused this exception to be thrown.public ConcurrentAccessException(String message, Throwable cause)
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |