org.apache.james.nntpserver
Class AuthServiceImpl
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.james.nntpserver.AuthServiceImpl
- All Implemented Interfaces:
- AuthService, org.apache.avalon.phoenix.Block, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled
- public class AuthServiceImpl
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements AuthService, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.phoenix.Block
Provides Authentication State.
Authenticates users.
Access Control for User Commands.
Implementation is NNTP Specific.
Would it be better to have a James Authentication Service ?
Application could define and plugin their own authentication service.
- Author:
- Harmeet
Fields inherited from interface org.apache.james.nntpserver.AuthService |
ROLE |
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager componentManager)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
boolean |
isAuthenticated()
|
boolean |
isAuthorized(java.lang.String command)
|
void |
setPassword(java.lang.String password)
|
void |
setUser(java.lang.String user)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
authRequired
protected boolean authRequired
repo
protected UsersRepository repo
user
protected java.lang.String user
password
protected java.lang.String password
userSet
protected boolean userSet
passwordSet
protected boolean passwordSet
AuthServiceImpl
public AuthServiceImpl()
isAuthorized
public boolean isAuthorized(java.lang.String command)
- Specified by:
isAuthorized
in interface AuthService
compose
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
throws org.apache.avalon.framework.component.ComponentException
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
org.apache.avalon.framework.component.ComponentException
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticated
in interface AuthService
setUser
public void setUser(java.lang.String user)
- Specified by:
setUser
in interface AuthService
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interface AuthService
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."