org.apache.geronimo.jetty6
Class JAASJettyRealm

java.lang.Object
  extended by org.apache.geronimo.jetty6.JAASJettyRealm
All Implemented Interfaces:
org.mortbay.jetty.security.UserRealm

public class JAASJettyRealm
extends Object
implements org.mortbay.jetty.security.UserRealm


Constructor Summary
JAASJettyRealm(String realmName, InternalJAASJettyRealm internalJAASJettyRealm)
           
 
Method Summary
 Principal authenticate(String username, Object credentials, org.mortbay.jetty.Request request)
           
 void disassociate(Principal user)
           
 String getName()
           
 Principal getPrincipal(String username)
           
 String getSecurityRealmName()
           
 boolean isUserInRole(Principal user, String role)
           
 void logout(Principal user)
           
 Principal popRole(Principal user)
           
 Principal pushRole(Principal user, String role)
           
 boolean reauthenticate(Principal user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASJettyRealm

public JAASJettyRealm(String realmName,
                      InternalJAASJettyRealm internalJAASJettyRealm)
Method Detail

getName

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

getPrincipal

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

authenticate

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

reauthenticate

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

isUserInRole

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

disassociate

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

pushRole

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

popRole

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

logout

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

getSecurityRealmName

public String getSecurityRealmName()


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