Package rs.baselib.security
Class AbstractAuthorizationCallback
java.lang.Object
rs.baselib.security.AbstractAuthorizationCallback
- All Implemented Interfaces:
AuthorizationCallback
- Direct Known Subclasses:
CommandLineAuthorizationCallback
,GuiAuthorizationCallback
,SimpleAuthorizationCallback
,TextFileAuthorizationCallback
Implements the basic methods for an authorization callback.
- Author:
- Ralph Schuster
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the login name.Returns the password.void
Sets the login name.void
setPassword
(String password) Sets the password.
-
Constructor Details
-
AbstractAuthorizationCallback
public AbstractAuthorizationCallback()Default Constructor.
-
-
Method Details
-
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 interfaceAuthorizationCallback
- Returns:
- login name.
-
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 interfaceAuthorizationCallback
- Returns:
- a password.
-
setName
Sets the login name.- Parameters:
name
- - the name to set
-
setPassword
Sets the password.- Parameters:
password
- - the password to set
-