Class AbstractAuthorizationCallback

java.lang.Object
rs.baselib.security.AbstractAuthorizationCallback
All Implemented Interfaces:
AuthorizationCallback
Direct Known Subclasses:
CommandLineAuthorizationCallback, GuiAuthorizationCallback, SimpleAuthorizationCallback, TextFileAuthorizationCallback

public abstract class AbstractAuthorizationCallback extends Object implements AuthorizationCallback
Implements the basic methods for an authorization callback.
Author:
Ralph Schuster
  • Constructor Details

    • AbstractAuthorizationCallback

      public AbstractAuthorizationCallback()
      Default Constructor.
  • Method Details

    • getName

      public String getName()
      Returns the login name. The method will eventually invoke further procedures such as asking the user on command line of GUI for the name.
      Specified by:
      getName in interface AuthorizationCallback
      Returns:
      login name.
    • getPassword

      public String getPassword()
      Returns the password. The method will eventually invoke further procedures such as asking the user on command line of GUI for the password.
      Specified by:
      getPassword in interface AuthorizationCallback
      Returns:
      a password.
    • setName

      public void setName(String name)
      Sets the login name.
      Parameters:
      name - - the name to set
    • setPassword

      public void setPassword(String password)
      Sets the password.
      Parameters:
      password - - the password to set