Package sonia.scm.security
Interface LoginAttemptHandler
public interface LoginAttemptHandler
- Since:
- 1.34
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeAuthentication
(org.apache.shiro.authc.AuthenticationToken token) This method is called before the authentication procedure is invoked.void
onSuccessfulAuthentication
(org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo info) Handle successful authentication.void
onUnsuccessfulAuthentication
(org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo info) Handle unsuccessful authentication.
-
Method Details
-
beforeAuthentication
void beforeAuthentication(org.apache.shiro.authc.AuthenticationToken token) throws org.apache.shiro.authc.AuthenticationException This method is called before the authentication procedure is invoked.- Parameters:
token
- authentication token- Throws:
org.apache.shiro.authc.AuthenticationException
-
onSuccessfulAuthentication
void onSuccessfulAuthentication(org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo info) throws org.apache.shiro.authc.AuthenticationException Handle successful authentication.- Parameters:
token
- authentication tokeninfo
- successful authentication result- Throws:
org.apache.shiro.authc.AuthenticationException
-
onUnsuccessfulAuthentication
void onUnsuccessfulAuthentication(org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo info) throws org.apache.shiro.authc.AuthenticationException Handle unsuccessful authentication.- Parameters:
token
- authentication tokeninfo
- unsuccessful authentication result- Throws:
org.apache.shiro.authc.AuthenticationException
-