org.apache.geronimo.openejb
Class GeronimoSecurityService

java.lang.Object
  extended by org.apache.geronimo.openejb.GeronimoSecurityService
All Implemented Interfaces:
org.apache.openejb.spi.SecurityService, org.apache.openejb.spi.Service

public class GeronimoSecurityService
extends Object
implements org.apache.openejb.spi.SecurityService


Constructor Summary
GeronimoSecurityService()
           
 
Method Summary
 void associate(Object securityIdentity)
           
 Object disassociate()
           
 Principal getCallerPrincipal()
           
 Subject getCurrentSubject()
           
 Object getSecurityIdentity()
           
 void init(Properties props)
           
 boolean isCallerAuthorized(Method method, org.apache.openejb.InterfaceType typee)
           
 boolean isCallerInRole(String role)
           
 Object login(String user, String pass)
           
 Object login(String securityRealm, String user, String pass)
           
 void logout(Object securityIdentity)
           
 void setSecurityIdentity(Object securityIdentity)
           
<T> T
translateTo(Object securityIdentity, Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeronimoSecurityService

public GeronimoSecurityService()
Method Detail

init

public void init(Properties props)
          throws Exception
Specified by:
init in interface org.apache.openejb.spi.Service
Throws:
Exception

login

public Object login(String user,
                    String pass)
             throws LoginException
Specified by:
login in interface org.apache.openejb.spi.SecurityService
Throws:
LoginException

login

public Object login(String securityRealm,
                    String user,
                    String pass)
             throws LoginException
Specified by:
login in interface org.apache.openejb.spi.SecurityService
Throws:
LoginException

logout

public void logout(Object securityIdentity)
Specified by:
logout in interface org.apache.openejb.spi.SecurityService

associate

public void associate(Object securityIdentity)
               throws LoginException
Specified by:
associate in interface org.apache.openejb.spi.SecurityService
Throws:
LoginException

disassociate

public Object disassociate()
Specified by:
disassociate in interface org.apache.openejb.spi.SecurityService

isCallerAuthorized

public boolean isCallerAuthorized(Method method,
                                  org.apache.openejb.InterfaceType typee)
Specified by:
isCallerAuthorized in interface org.apache.openejb.spi.SecurityService

isCallerInRole

public boolean isCallerInRole(String role)
Specified by:
isCallerInRole in interface org.apache.openejb.spi.SecurityService

getCallerPrincipal

public Principal getCallerPrincipal()
Specified by:
getCallerPrincipal in interface org.apache.openejb.spi.SecurityService

getSecurityIdentity

public Object getSecurityIdentity()

setSecurityIdentity

public void setSecurityIdentity(Object securityIdentity)

translateTo

public <T> T translateTo(Object securityIdentity,
                         Class<T> type)

getCurrentSubject

public Subject getCurrentSubject()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.