public class FileBasedAuth extends FilesystemBasedFtpAuth implements HttpAuthInterface
account
isIdentified, password, rootFromAuth, session, user
Constructor and Description |
---|
FileBasedAuth(FtpSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
businessClean()
Business implementation of clean
|
AbstractExecutor.CommandExecutor |
getCommandExecutor() |
long |
getSpecialId() |
boolean |
isAdmin() |
boolean |
isBusinessPathValid(String newPath)
Is the given complete relative Path valid from Authentication/Business
point of view.
|
protected NextCommandReply |
setBusinessAccount(String account)
Set the account according to any implementation and could set the
rootFromAuth.
|
protected NextCommandReply |
setBusinessPassword(String password)
Set the password according to any implementation and could set the
rootFromAuth.
|
protected String |
setBusinessRootFromAuth() |
protected NextCommandReply |
setBusinessUser(String user)
Set the user according to any implementation and could set the
rootFromAuth.
|
void |
setSpecialId(long specialId) |
void |
specialNoSessionAuth(String hostid)
Special Authentication for local execution
|
clear, getAccount, getBaseDirectory, setAccount, setRootFromAuth
getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setIsIdentified, setPassword, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccount, setAccount
clear, getBaseDirectory, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setPassword, setUser
public FileBasedAuth(FtpSession session)
session
- protected void businessClean()
FilesystemBasedAuthImpl
businessClean
in class FilesystemBasedAuthImpl
protected NextCommandReply setBusinessUser(String user) throws Reply421Exception, Reply530Exception
FilesystemBasedAuthImpl
setBusinessUser
in class FilesystemBasedAuthImpl
user
- the user to setReply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationprotected NextCommandReply setBusinessPassword(String password) throws Reply421Exception, Reply530Exception
setBusinessPassword
in class FilesystemBasedAuthImpl
password
- Reply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationprotected NextCommandReply setBusinessAccount(String account) throws Reply421Exception, Reply530Exception
setBusinessAccount
in class FilesystemBasedFtpAuth
account
- Reply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationpublic boolean isBusinessPathValid(String newPath)
AuthInterface
isBusinessPathValid
in interface AuthInterface
protected String setBusinessRootFromAuth() throws Reply421Exception
setBusinessRootFromAuth
in class FilesystemBasedAuthImpl
Reply421Exception
- if the business root is not availablepublic boolean isAdmin()
isAdmin
in interface AuthInterface
public void specialNoSessionAuth(String hostid)
hostid
- public long getSpecialId()
public void setSpecialId(long specialId)
specialId
- the specialId to setpublic AbstractExecutor.CommandExecutor getCommandExecutor()
getCommandExecutor
in interface HttpAuthInterface
Copyright © 2009–2020 Waarp. All rights reserved.