Class JXLoginPane.NullLoginService

Enclosing class:
JXLoginPane

private static final class JXLoginPane.NullLoginService extends LoginService
Simple login service that allows everybody to login. This is useful in demos and allows us to avoid having to check for LoginService being null
  • Constructor Details

    • NullLoginService

      private NullLoginService()
  • Method Details

    • authenticate

      public boolean authenticate(String name, char[] password, String server) throws Exception
      Description copied from class: LoginService
      This method is intended to be implemented by clients wishing to authenticate a user with a given password. Clients should implement the authentication in a manner that the authentication can be cancelled at any time.
      Specified by:
      authenticate in class LoginService
      Parameters:
      name - username
      password - password
      server - server (optional)
      Returns:
      true on authentication success
      Throws:
      Exception
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object