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 final void businessClean()
FilesystemBasedAuthImpl
businessClean
in class FilesystemBasedAuthImpl
protected final NextCommandReply setBusinessUser(String user) throws 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 final NextCommandReply setBusinessPassword(String password) throws Reply530Exception
setBusinessPassword
in class FilesystemBasedAuthImpl
password
- Reply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationprotected final NextCommandReply setBusinessAccount(String account) throws Reply530Exception
setBusinessAccount
in class FilesystemBasedFtpAuth
account
- Reply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationpublic final boolean isBusinessPathValid(String newPath)
AuthInterface
isBusinessPathValid
in interface AuthInterface
protected final String setBusinessRootFromAuth() throws Reply421Exception
setBusinessRootFromAuth
in class FilesystemBasedAuthImpl
Reply421Exception
- if the business root is not availablepublic final boolean isAdmin()
isAdmin
in interface AuthInterface
public final void specialNoSessionAuth(String hostid)
hostid
- public final long getSpecialId()
public final void setSpecialId(long specialId)
specialId
- the specialId to setpublic final AbstractExecutor.CommandExecutor getCommandExecutor()
getCommandExecutor
in interface HttpAuthInterface
Copyright © 2009–2022 Waarp. All rights reserved.