Class EmptyLoginService

All Implemented Interfaces:

public class EmptyLoginService extends Object implements LoginService
LoginService implementation which always denies any attempt to login.
  • Constructor Details

    • EmptyLoginService

      public EmptyLoginService()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface LoginService
      Get the name of the login service (aka Realm name)
    • login

      public UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request)
      Description copied from interface: LoginService
      Login a user.
      Specified by:
      login in interface LoginService
      username - The user name
      credentials - The users credentials
      request - TODO
      A UserIdentity if the credentials matched, otherwise null
    • validate

      public boolean validate(UserIdentity user)
      Description copied from interface: LoginService
      Validate a user identity. Validate that a UserIdentity previously created by a call to LoginService.login(String, Object, ServletRequest) is still valid.
      Specified by:
      validate in interface LoginService
      user - The user to validate
      true if authentication has not been revoked for the user.
    • getIdentityService

      public IdentityService getIdentityService()
      Description copied from interface: LoginService
      Get the IdentityService associated with this Login Service.
      Specified by:
      getIdentityService in interface LoginService
      the IdentityService associated with this Login Service.
    • setIdentityService

      public void setIdentityService(IdentityService service)
      Description copied from interface: LoginService
      Set the IdentityService associated with this Login Service.
      Specified by:
      setIdentityService in interface LoginService
      service - the IdentityService associated with this Login Service.
    • logout

      public void logout(UserIdentity user)
      Specified by:
      logout in interface LoginService