Class AuthenticationMethod

java.lang.Object
net.sf.basedb.core.authentication.AuthenticationMethod

public class AuthenticationMethod extends Object
Holds information about the method that was used to verify a user when logging in. See SessionControl.getAuthenticationMethod(). The INTERNAL is method is a static constant used when the regular internal username/password verification is used. The EXTERNAL is a generic external verification but external AuthenticationManager:s are encouraged to define their own authentication methods.
Since:
3.3
Author:
Nicklas
  • Field Details

  • Constructor Details

    • AuthenticationMethod

      private AuthenticationMethod(String method)
  • Method Details

    • getInstance

      public static final AuthenticationMethod getInstance(String method)
      Get an instance of this class for the given authentication method. If no method with that name exists a new method is created.
      Parameters:
      method - The name of the method
    • getMethod

      public String getMethod()
      Get the name of the authentication method.
    • toString

      public String toString()
      Overrides:
      toString in class Object