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

All Implemented Interfaces:

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
 public T disassociate()
 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)
 public boolean isCallerInRole(String role)
 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