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) |
void |
dispose() |
void |
service(org.apache.avalon.framework.service.ServiceManager manager) |
public boolean authenticate(User user, String password) throws DataBackendException
authenticate in interface Authenticatoruser - 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.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.