org.apache.geronimo.jetty
Class JAASJettyRealm

java.lang.Object
  extended byorg.apache.geronimo.jetty.JAASJettyRealm
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, org.mortbay.http.UserRealm

public class JAASJettyRealm
extends Object
implements org.mortbay.http.UserRealm, org.apache.geronimo.gbean.GBeanLifecycle

Version:
$Revision: 1.6 $ $Date: 2004/07/12 06:07:51 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
JAASJettyRealm(JettyContainer container)
           
 
Method Summary
 Principal authenticate(String username, Object credentials, org.mortbay.http.HttpRequest request)
           
 void disassociate(Principal user)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 String getName()
           
 Principal getPrincipal(String username)
           
 boolean isUserInRole(Principal user, String role)
           
 void logout(Principal user)
           
 Principal popRole(Principal user)
           
 Principal pushRole(Principal user, String role)
           
 boolean reauthenticate(Principal user)
           
 void setLoginModuleName(String name)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

JAASJettyRealm

public JAASJettyRealm(JettyContainer container)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.mortbay.http.UserRealm

setName

public void setName(String name)

setLoginModuleName

public void setLoginModuleName(String name)

getPrincipal

public Principal getPrincipal(String username)
Specified by:
getPrincipal in interface org.mortbay.http.UserRealm

authenticate

public Principal authenticate(String username,
                              Object credentials,
                              org.mortbay.http.HttpRequest request)
Specified by:
authenticate in interface org.mortbay.http.UserRealm

logout

public void logout(Principal user)
Specified by:
logout in interface org.mortbay.http.UserRealm

reauthenticate

public boolean reauthenticate(Principal user)
Specified by:
reauthenticate in interface org.mortbay.http.UserRealm

disassociate

public void disassociate(Principal user)
Specified by:
disassociate in interface org.mortbay.http.UserRealm

isUserInRole

public boolean isUserInRole(Principal user,
                            String role)
Specified by:
isUserInRole in interface org.mortbay.http.UserRealm

pushRole

public Principal pushRole(Principal user,
                          String role)
Specified by:
pushRole in interface org.mortbay.http.UserRealm

popRole

public Principal popRole(Principal user)
Specified by:
popRole in interface org.mortbay.http.UserRealm

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.