Package rs.baselib.security
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.StringgetName()Returns the login name.java.lang.StringgetPassword()Returns the password.voidsetName(java.lang.String name)Sets the login name.voidsetPassword(java.lang.String password)Sets the password.
-
Constructor Details
-
AbstractAuthorizationCallback
public AbstractAuthorizationCallback()Default Constructor.
-
-
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:
getNamein interfaceAuthorizationCallback- 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:
getPasswordin interfaceAuthorizationCallback- 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
-