net.incongru.berkano.security
Interface SecurityGateway

All Known Implementing Classes:
AbstractSecurityGateway, DummySecurityGateway

Deprecated. currently unused - staying there for now just as a reminder

public interface SecurityGateway

A SecurityGateway will often be specific to a berkano subapplication?.. then the getRoles method would only return the roles of that app... And each app would register its own SecurityGateway in its own picocontainer?? that sounds interesting See the Gateway pattern in M.Fowler's book. It might also be seen as some sort of Adapter(GOF) Also check Mapper(Fowler) and ServiceStub(Fowler)

Version:
$Revision: 1.3 $
Author:
greg, $Author: gj $ (last edit)

Method Summary
 boolean authenticate(Authenticator authenticator)
          Deprecated. Mimics the JAAS authentication, with Callback and CallbackHandler.
 boolean hasPermission(User user, java.lang.String permission)
          Deprecated.  
 boolean logout(Authenticator authenticator)
          Deprecated.  
 

Method Detail

authenticate

boolean authenticate(Authenticator authenticator)
Deprecated. 
Mimics the JAAS authentication, with Callback and CallbackHandler. Here, the authenticator class should be constructed with a ServletRequest, for example)


logout

boolean logout(Authenticator authenticator)
Deprecated. 

hasPermission

boolean hasPermission(User user,
                      java.lang.String permission)
Deprecated. 


Copyright © 2004-2007. All Rights Reserved.