public abstract class FilesystemBasedFtpAuth extends FilesystemBasedAuthImpl implements FtpAuth
Modifier and Type | Field and Description |
---|---|
protected String |
account
Account name
|
isIdentified, password, rootFromAuth, session, user
Modifier | Constructor and Description |
---|---|
protected |
FilesystemBasedFtpAuth(FtpSession session) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clean object
|
String |
getAccount() |
String |
getBaseDirectory()
Return the mount point
|
NextCommandReply |
setAccount(String account) |
protected abstract NextCommandReply |
setBusinessAccount(String account)
Set the account according to any implementation and could set the
rootFromAuth.
|
protected void |
setRootFromAuth()
Set the root relative Path from current status of Authentication (should
be
the highest level for the
current authentication).
|
businessClean, getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setBusinessPassword, setBusinessRootFromAuth, setBusinessUser, setIsIdentified, setPassword, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBusinessPath, getRelativePath, getSession, getUser, isAdmin, isBusinessPathValid, isIdentified, setPassword, setUser
protected String account
protected FilesystemBasedFtpAuth(FtpSession session)
session
- public String getAccount()
getAccount
in interface FtpAuth
protected abstract NextCommandReply setBusinessAccount(String account) throws Reply421Exception, Reply530Exception, Reply502Exception
account
- Reply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationReply502Exception
- if there is a problem during the
authenticationpublic NextCommandReply setAccount(String account) throws Reply421Exception, Reply530Exception, Reply502Exception
setAccount
in interface FtpAuth
account
- the account to setReply421Exception
- if there is a problem during the
authenticationReply530Exception
- if there is a problem during the
authenticationReply502Exception
protected void setRootFromAuth() throws Reply421Exception
setRootFromAuth
in class FilesystemBasedAuthImpl
Reply421Exception
- if the business root is not availablepublic void clear()
clear
in interface AuthInterface
clear
in class FilesystemBasedAuthImpl
public String getBaseDirectory()
AuthInterface
getBaseDirectory
in interface AuthInterface
Copyright © 2009–2020 Waarp. All rights reserved.