org.openanzo.server.security
Class AuthenticationProvider

java.lang.Object
  extended by org.openanzo.services.impl.NotificationListenerConnection
      extended by org.openanzo.server.security.AuthenticationProvider
All Implemented Interfaces:
IServerService, IServerServiceMBean, AuthenticationProviderMBean, IAuthenticationProvider

public class AuthenticationProvider
extends NotificationListenerConnection
implements IAuthenticationProvider, AuthenticationProviderMBean

Implementation of IAuthenticationProvider that authenticates with users and passwords stored in Anzo

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
AuthenticationProvider(java.util.Properties properties)
          Create new AuthenticationProvider with given configuration properties
 
Method Summary
 org.openrdf.model.URI authenticateUser(RepositoryConnection repositoryConnection, java.lang.String userId, java.lang.String password)
          Authenticate the userId and password with provider, and return the URI of the user within Anzo
 boolean getIsStarted()
          Determine if the service is started
 void registerIUserUpdateListener(IUserUpdateListener listener)
          Register IUserUpdateListener
 void registerMBean(javax.management.MBeanServer mbs, javax.management.ObjectName parentObjectName)
          Register the service with the server's jmx server
 void start()
          Start the service
 void stop()
          Stop the service
 void unregisterIUserUpdateListener(IUserUpdateListener listener)
          Unregister IUserUpdateListener
 
Methods inherited from class org.openanzo.services.impl.NotificationListenerConnection
close, connect, getNotificationService, isConnected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.server.repository.IServerService
close
 

Constructor Detail

AuthenticationProvider

public AuthenticationProvider(java.util.Properties properties)
Create new AuthenticationProvider with given configuration properties

Parameters:
properties -
Method Detail

start

public void start()
           throws AnzoException
Description copied from interface: IServerService
Start the service

Specified by:
start in interface IServerService
Specified by:
start in interface IServerServiceMBean
Throws:
AnzoException

getIsStarted

public boolean getIsStarted()
Description copied from interface: IServerService
Determine if the service is started

Specified by:
getIsStarted in interface IServerService
Specified by:
getIsStarted in interface IServerServiceMBean
Returns:
true if the service is started

stop

public void stop()
          throws AnzoException
Description copied from interface: IServerService
Stop the service

Specified by:
stop in interface IServerService
Specified by:
stop in interface IServerServiceMBean
Throws:
AnzoException

authenticateUser

public org.openrdf.model.URI authenticateUser(RepositoryConnection repositoryConnection,
                                              java.lang.String userId,
                                              java.lang.String password)
                                       throws AnzoException
Description copied from interface: IAuthenticationProvider
Authenticate the userId and password with provider, and return the URI of the user within Anzo

Specified by:
authenticateUser in interface IAuthenticationProvider
Parameters:
repositoryConnection - RepositoryConnection used to do any anzo queries to determine userid
userId - Userid to authenticate
password - Password to authenticate
Returns:
URI of user within Anzo
Throws:
AnzoException

registerIUserUpdateListener

public void registerIUserUpdateListener(IUserUpdateListener listener)
Description copied from interface: IAuthenticationProvider
Register IUserUpdateListener

Specified by:
registerIUserUpdateListener in interface IAuthenticationProvider

unregisterIUserUpdateListener

public void unregisterIUserUpdateListener(IUserUpdateListener listener)
Description copied from interface: IAuthenticationProvider
Unregister IUserUpdateListener

Specified by:
unregisterIUserUpdateListener in interface IAuthenticationProvider

registerMBean

public void registerMBean(javax.management.MBeanServer mbs,
                          javax.management.ObjectName parentObjectName)
Description copied from interface: IServerService
Register the service with the server's jmx server

Specified by:
registerMBean in interface IServerService
Parameters:
mbs - the jmx server
parentObjectName - the name under which this object will be registered


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.