public class FileBasedAuth
extends org.waarp.ftp.filesystembased.FilesystemBasedFtpAuth
implements org.waarp.gateway.kernel.session.HttpAuthInterface
Constructor and Description |
---|
FileBasedAuth(org.waarp.ftp.core.session.FtpSession session) |
Modifier and Type | Method and Description |
---|---|
protected void |
businessClean() |
org.waarp.gateway.kernel.exec.AbstractExecutor.CommandExecutor |
getCommandExecutor() |
long |
getSpecialId() |
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) |
void |
setSpecialId(long specialId) |
void |
specialNoSessionAuth(String hostid)
Special Authentication for local execution
|
clear, getAccount, getBaseDirectory, setAccount
getAbsolutePath, getBusinessPath, getRelativePath, getSession, getUser, isIdentified, setIsIdentified, setPassword, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FileBasedAuth(org.waarp.ftp.core.session.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 org.waarp.ftp.filesystembased.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)
isBusinessPathValid
in interface org.waarp.common.file.AuthInterface
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()
isAdmin
in interface org.waarp.common.file.AuthInterface
public void specialNoSessionAuth(String hostid)
hostid
- public long getSpecialId()
public void setSpecialId(long specialId)
specialId
- the specialId to setpublic org.waarp.gateway.kernel.exec.AbstractExecutor.CommandExecutor getCommandExecutor()
getCommandExecutor
in interface org.waarp.gateway.kernel.session.HttpAuthInterface
Copyright © 2009–2019 Waarp. All rights reserved.