org.openejb.ri.sp
Class PseudoSecurityService
java.lang.Object
org.openejb.ri.sp.PseudoSecurityService
- All Implemented Interfaces:
- SecurityService, Service
public class PseudoSecurityService
- extends Object
- implements SecurityService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PseudoSecurityService
public PseudoSecurityService()
init
public void init(Properties props)
- Specified by:
init
in interface Service
getSecurityIdentity
public Object getSecurityIdentity()
- Specified by:
getSecurityIdentity
in interface SecurityService
setSecurityIdentity
public void setSecurityIdentity(Object securityIdentity)
- Specified by:
setSecurityIdentity
in interface SecurityService
isCallerAuthorized
public boolean isCallerAuthorized(Object securityIdentity,
String[] roleNames)
- Description copied from interface:
SecurityService
- Check if securityIdentity is authorized to perform the specified action.
This is currently used by OpenEJB to check if a caller is authorized to
to assume at least one of a collection of roles, the roles authorized for
a particular method of a particular deployment.
- Specified by:
isCallerAuthorized
in interface SecurityService
translateTo
public Object translateTo(Object securityIdentity,
Class type)
- Description copied from interface:
SecurityService
- Attempts to convert an opaque securityIdentity to a concrete target type.
This is currently used to obtain an java.security.Princiapl type which
must be returned by OpenEJB when a bean invokes EJBContext.getCallerPrincipal().
Conversion to a Principal type must be supported.
It may also be used by JCX connectors to obtain the JAAS Subject of the caller,
support for translation to Subject type is currently optional.
- Specified by:
translateTo
in interface SecurityService
Copyright © 1999-2010 OpenEJB. All Rights Reserved.