org.apache.servicemix.http.jetty
Class JaasUserRealm

java.lang.Object
  extended by org.apache.servicemix.http.jetty.JaasUserRealm
All Implemented Interfaces:
org.mortbay.jetty.security.UserRealm

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

A JAAS based implementation of a realm for jetty 6.

Author:
gnodet

Constructor Summary
JaasUserRealm()
           
 
Method Summary
 Principal authenticate(String username, Object credentials, org.mortbay.jetty.Request request)
           
 void disassociate(Principal user)
           
 org.apache.servicemix.common.security.AuthenticationService getAuthenticationService()
           
 String getDomain()
           
 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 setAuthenticationService(org.apache.servicemix.common.security.AuthenticationService authenticationService)
           
 void setDomain(String domain)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasUserRealm

public JaasUserRealm()
Method Detail

getAuthenticationService

public org.apache.servicemix.common.security.AuthenticationService getAuthenticationService()
Returns:
the authenticationService

setAuthenticationService

public void setAuthenticationService(org.apache.servicemix.common.security.AuthenticationService authenticationService)
Parameters:
authenticationService - the authenticationService to set

getDomain

public String getDomain()
Returns:
the domain

setDomain

public void setDomain(String domain)
Parameters:
domain - the domain to set

getName

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

setName

public void setName(String name)
Parameters:
name - the name to set

authenticate

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

disassociate

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

getPrincipal

public Principal getPrincipal(String username)
Specified by:
getPrincipal 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

logout

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

popRole

public Principal popRole(Principal user)
Specified by:
popRole 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

reauthenticate

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


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