shiro common abnormalities and treatment

Common exceptions 1.shiro of

1.1 AuthenticationException anomaly is Shiro in the login authentication process, the authentication fails needed thrown. AuthenticationException comprising the following subclasses:

1.1.1 CredentitalsException Document abnormality

IncorrectCredentialsException incorrect credentials
ExpiredCredentialsException certificate expired

1.1.2 AccountException account abnormal

ConcurrentAccessException concurrent access exception (thrown when multiple users simultaneously log in)
UnknownAccountException unknown account
ExcessiveAttemptsException number of authentication exceeds the limit
DisabledAccountException disabled account
LockedAccountException account is locked
pportedTokenException use unsupported Token

1.2AuthorizationException:
  子类:

 1.2.1 UnauthorizedException: thrown to instruct or request access to a resource request is not allowed.

 1.2.2 UnanthenticatedException: When not completed successfully authenticated, an exception is thrown when attempting to perform authorization.

Guess you like

Origin www.cnblogs.com/mark5/p/11896993.html