org.apache.geronimo.openejb
Class GeronimoSecurityService
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeronimoSecurityService
public GeronimoSecurityService()
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
associate
public void associate(Object securityIdentity)
throws LoginException
- Specified by:
associate
in interface org.apache.openejb.spi.SecurityService
- Throws:
LoginException
unassociate
public void unassociate(Object securityIdentity)
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()
- Specified by:
getSecurityIdentity
in interface org.apache.openejb.spi.SecurityService
setSecurityIdentity
public void setSecurityIdentity(Object securityIdentity)
- Specified by:
setSecurityIdentity
in interface org.apache.openejb.spi.SecurityService
translateTo
public <T> T translateTo(Object securityIdentity,
Class<T> type)
- Specified by:
translateTo
in interface org.apache.openejb.spi.SecurityService
getCurrentSubject
public Subject getCurrentSubject()
- Specified by:
getCurrentSubject
in interface org.apache.openejb.spi.SecurityService
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.