org.jboss.jetty.security
Class JBossLoginService

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.jboss.jetty.security.JBossLoginService
All Implemented Interfaces:
org.eclipse.jetty.security.LoginService, org.eclipse.jetty.util.component.LifeCycle

public class JBossLoginService
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.security.LoginService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
protected  JBossIdentityService _identityService
           
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
JBossLoginService(String realmName)
           
 
Method Summary
 void doStart()
           
 org.eclipse.jetty.security.IdentityService getIdentityService()
           
 String getName()
           
 org.eclipse.jetty.server.UserIdentity login(String username, Object credentials)
           
 void logout(org.eclipse.jetty.server.UserIdentity id)
           
 void setIdentityService(org.eclipse.jetty.security.IdentityService service)
           
 String toString()
           
 boolean validate(org.eclipse.jetty.server.UserIdentity user)
           
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_identityService

protected JBossIdentityService _identityService
Constructor Detail

JBossLoginService

public JBossLoginService(String realmName)
Method Detail

getIdentityService

public org.eclipse.jetty.security.IdentityService getIdentityService()
Specified by:
getIdentityService in interface org.eclipse.jetty.security.LoginService

getName

public String getName()
Specified by:
getName in interface org.eclipse.jetty.security.LoginService

login

public org.eclipse.jetty.server.UserIdentity login(String username,
                                                   Object credentials)
Specified by:
login in interface org.eclipse.jetty.security.LoginService

logout

public void logout(org.eclipse.jetty.server.UserIdentity id)
Specified by:
logout in interface org.eclipse.jetty.security.LoginService

validate

public boolean validate(org.eclipse.jetty.server.UserIdentity user)
Specified by:
validate in interface org.eclipse.jetty.security.LoginService

setIdentityService

public void setIdentityService(org.eclipse.jetty.security.IdentityService service)
Specified by:
setIdentityService in interface org.eclipse.jetty.security.LoginService

doStart

public void doStart()
             throws Exception
Overrides:
doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.