public class CryptoAuthenticator extends org.apache.avalon.framework.logger.AbstractLogEnabled implements Authenticator, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable
Modifier and Type | Field and Description |
---|---|
protected org.apache.fulcrum.crypto.CryptoService |
cryptoService |
ROLE
Constructor and Description |
---|
CryptoAuthenticator() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(User user,
String password)
Authenticate a user with the specified password.
|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method
|
void |
dispose()
Avalon component lifecycle method
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Avalon component lifecycle method
|
public boolean authenticate(User user, String password) throws DataBackendException
authenticate
in interface Authenticator
user
- a User object.password
- the user supplied password.DataBackendException
- if there is a problem accessing the storage.public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.