Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » spi » [javadoc | source]
org.apache.openejb.spi
public interface: SecurityService [javadoc | source]

All Implemented Interfaces:
    Service

All Known Implementing Classes:
    TomcatSecurityService, SecurityServiceImpl, PseudoSecurityService, AbstractSecurityService

The generic value T is any serializable token of the SecurityService implementations choosing. This token only needs to be understandable by the SecurityService internally and need not be a publicly usable class type. No part of the outlying system will make any assumptions as to the type of the object. The use of a java generic type is to express the required symmetry in the interface.
Method from org.apache.openejb.spi.SecurityService Summary:
associate,   disassociate,   getCallerPrincipal,   isCallerAuthorized,   isCallerInRole,   login,   login,   logout
Method from org.apache.openejb.spi.SecurityService Detail:
 public  void associate(T securityIdentity) throws LoginException
    Active
 public T disassociate()
    Active
 public Principal getCallerPrincipal()
    Implementors are encouraged to return a java.security.Principal object that implements org.apache.openejb.spi.CallerPrincipal JAAS LoginModule implementors are encouraged to use the CallerPrincipal interface to denote the best fitting Principal for getCallerPrincipal.
 public boolean isCallerAuthorized(Method method,
    InterfaceType type)
    Active
 public boolean isCallerInRole(String role)
    Active
 public T login(String user,
    String pass) throws LoginException
 public T login(String securityRealm,
    String user,
    String pass) throws LoginException
 public  void logout(T securityIdentity) throws LoginException
    Active