public abstract class FTPAuthenticatorBase extends Object implements FTPAuthenticator, ActivateableBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
protected ServerConfigurationAccessor |
serverConfiguration |
| Constructor and Description |
|---|
FTPAuthenticatorBase()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
authenticateUser(ClientInfo info,
FTPSrvSession sess)
Authenticate the user
|
protected void |
checkForAdminUserName(ClientInfo cInfo)
Check if the user is an administrator user name
|
void |
closeAuthenticator()
Close the authenticator, perform any cleanup
|
protected UserTransaction |
createTransaction()
Create a transaction, this will be a wrteable transaction unless the system is in read-only mode.
|
void |
destroy()
Handle tidy up on container shutdown
|
protected AuthenticationComponent |
getAuthenticationComponent()
Return the authentication componenet
|
protected AuthenticationService |
getAuthenticationService()
Return the authentication service
|
protected AuthorityService |
getAuthorityService()
Return the authority service
|
protected NLTMAuthenticator |
getNTLMAuthenticator()
Returns an SSO-enabled authentication component.
|
protected TransactionService |
getTransactionService()
Return the transaction service
|
void |
initialize()
Initialize the authenticator (after properties have been set)
|
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator
|
boolean |
isActive()
Determines whether this bean is active.
|
void |
setActive(boolean active)
Activates or deactivates the bean.
|
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent) |
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setConfig(ServerConfigurationAccessor config) |
void |
setTransactionService(TransactionService transactionService) |
protected static final org.apache.commons.logging.Log logger
protected ServerConfigurationAccessor serverConfiguration
public void setConfig(ServerConfigurationAccessor config)
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
public void setAuthenticationService(AuthenticationService authenticationService)
public void setTransactionService(TransactionService transactionService)
public void setAuthorityService(AuthorityService authorityService)
public boolean isActive()
ActivateableBeanisActive in interface ActivateableBeantrue if this bean is activepublic void setActive(boolean active)
active - true if the bean is active and initialization should completepublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in interface FTPAuthenticatorconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic void initialize()
throws InvalidConfigurationException
InvalidConfigurationExceptionpublic abstract boolean authenticateUser(ClientInfo info, FTPSrvSession sess)
authenticateUser in interface FTPAuthenticatorclient - ClientInfosess - FTPSrvSessionpublic void closeAuthenticator()
closeAuthenticator in interface FTPAuthenticatorprotected final AuthenticationComponent getAuthenticationComponent()
protected final NLTMAuthenticator getNTLMAuthenticator()
protected final AuthenticationService getAuthenticationService()
protected final TransactionService getTransactionService()
protected final AuthorityService getAuthorityService()
protected final void checkForAdminUserName(ClientInfo cInfo)
cInfo - ClientInfoprotected final UserTransaction createTransaction()
public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2005–2014 Alfresco Software. All rights reserved.