org.apache.openejb.ri.sp
Class PseudoSecurityService

java.lang.Object
  extended by org.apache.openejb.ri.sp.PseudoSecurityService
All Implemented Interfaces:
SecurityService, Service

public class PseudoSecurityService
extends Object
implements SecurityService


Constructor Summary
PseudoSecurityService()
           
 
Method Summary
 void associate(Object securityIdentity)
          Active
 Object disassociate()
          Active
 Principal getCallerPrincipal()
          Active
 Set<String> getLogicalRoles(Principal[] principals, Set<String> logicalRoles)
           
 void init(Properties props)
           
 boolean isCallerAuthorized(Method method, InterfaceType type)
          Active
 boolean isCallerInRole(String role)
          Active
 Object login(String user, String pass)
           
 Object login(String securityRealm, String user, String pass)
           
 void logout(Object securityIdentity)
          Active
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoSecurityService

public PseudoSecurityService()
Method Detail

init

public void init(Properties props)
Specified by:
init in interface Service

login

public Object login(String user,
                    String pass)
             throws LoginException
Specified by:
login in interface SecurityService
Throws:
LoginException

login

public Object login(String securityRealm,
                    String user,
                    String pass)
             throws LoginException
Specified by:
login in interface SecurityService
Throws:
LoginException

getLogicalRoles

public Set<String> getLogicalRoles(Principal[] principals,
                                   Set<String> logicalRoles)

associate

public void associate(Object securityIdentity)
               throws LoginException
Description copied from interface: SecurityService
Active

Specified by:
associate in interface SecurityService
Throws:
LoginException

disassociate

public Object disassociate()
Description copied from interface: SecurityService
Active

Specified by:
disassociate in interface SecurityService

logout

public void logout(Object securityIdentity)
            throws LoginException
Description copied from interface: SecurityService
Active

Specified by:
logout in interface SecurityService
Throws:
LoginException

isCallerInRole

public boolean isCallerInRole(String role)
Description copied from interface: SecurityService
Active

Specified by:
isCallerInRole in interface SecurityService

getCallerPrincipal

public Principal getCallerPrincipal()
Description copied from interface: SecurityService
Active

Specified by:
getCallerPrincipal in interface SecurityService

isCallerAuthorized

public boolean isCallerAuthorized(Method method,
                                  InterfaceType type)
Description copied from interface: SecurityService
Active

Specified by:
isCallerAuthorized in interface SecurityService


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.