public class FileBasedAuth extends FilesystemBasedFtpAuth
account
Constructor and Description |
---|
FileBasedAuth(FtpSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
businessClean() |
boolean |
isAdmin() |
boolean |
isBusinessPathValid(String newPath) |
protected org.waarp.common.command.NextCommandReply |
setBusinessAccount(String account)
Set the account according to any implementation and could set the rootFromAuth.
|
protected org.waarp.common.command.NextCommandReply |
setBusinessPassword(String password)
Set the password according to any implementation and could set the rootFromAuth.
|
protected String |
setBusinessRootFromAuth() |
protected org.waarp.common.command.NextCommandReply |
setBusinessUser(String user) |
clear, getAccount, getBaseDirectory, setAccount
getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setIsIdentified, setPassword, setUser
public FileBasedAuth(FtpSession session)
session
- protected void businessClean()
businessClean
in class org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl
protected org.waarp.common.command.NextCommandReply setBusinessUser(String user) throws org.waarp.common.command.exception.Reply421Exception, org.waarp.common.command.exception.Reply530Exception
setBusinessUser
in class org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl
user
- the user to setorg.waarp.common.command.exception.Reply421Exception
- if there is a problem during the authenticationorg.waarp.common.command.exception.Reply530Exception
- if there is a problem during the authenticationprotected org.waarp.common.command.NextCommandReply setBusinessPassword(String password) throws org.waarp.common.command.exception.Reply421Exception, org.waarp.common.command.exception.Reply530Exception
setBusinessPassword
in class org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl
password
- org.waarp.common.command.exception.Reply421Exception
- if there is a problem during the authenticationorg.waarp.common.command.exception.Reply530Exception
- if there is a problem during the authenticationprotected org.waarp.common.command.NextCommandReply setBusinessAccount(String account) throws org.waarp.common.command.exception.Reply421Exception, org.waarp.common.command.exception.Reply530Exception
setBusinessAccount
in class FilesystemBasedFtpAuth
account
- org.waarp.common.command.exception.Reply421Exception
- if there is a problem during the authenticationorg.waarp.common.command.exception.Reply530Exception
- if there is a problem during the authenticationpublic boolean isBusinessPathValid(String newPath)
protected String setBusinessRootFromAuth() throws org.waarp.common.command.exception.Reply421Exception
setBusinessRootFromAuth
in class org.waarp.common.file.filesystembased.FilesystemBasedAuthImpl
org.waarp.common.command.exception.Reply421Exception
public boolean isAdmin()
Copyright © 2009–2019 Waarp. All rights reserved.