org.openanzo.server.security
Class JaasAuthenticationProvider

java.lang.Object
  extended by org.openanzo.server.security.JaasAuthenticationProvider
All Implemented Interfaces:
IServerService, IAuthenticationProvider

public class JaasAuthenticationProvider
extends java.lang.Object
implements IAuthenticationProvider

Authentication provider that uses JAAS to authenticate users

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
JaasAuthenticationProvider()
           
 
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
 void close()
          Close the service
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasAuthenticationProvider

public JaasAuthenticationProvider()
Method Detail

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

start

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

Specified by:
start in interface IServerService

stop

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

Specified by:
stop in interface IServerService

close

public void close()
Description copied from interface: IServerService
Close the service

Specified by:
close in interface IServerService

getIsStarted

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

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

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.