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 java.lang.Object
implements AuthorizationCallback
Implements the basic methods for an authorization callback.
Author:
Ralph Schuster
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractAuthorizationCallback()
    Default Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()
    Returns the login name.
    java.lang.String getPassword()
    Returns the password.
    void setName​(java.lang.String name)
    Sets the login name.
    void setPassword​(java.lang.String password)
    Sets the password.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getName

      public java.lang.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 java.lang.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​(java.lang.String name)
      Sets the login name.
      Parameters:
      name - - the name to set
    • setPassword

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