org.apache.james.nntpserver
Class AuthServiceImpl

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--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.Loggable

public class AuthServiceImpl
extends org.apache.avalon.framework.logger.AbstractLoggable
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

Field Summary
protected  boolean authRequired
           
protected  java.lang.String password
           
protected  boolean passwordSet
           
protected  UsersRepository repo
           
protected  java.lang.String user
           
protected  boolean userSet
           
 
Fields inherited from interface org.apache.james.nntpserver.AuthService
ROLE
 
Constructor Summary
AuthServiceImpl()
           
 
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.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AuthServiceImpl

public AuthServiceImpl()
Method Detail

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

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

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."