1 16 package org.apache.cocoon.webapps.authentication; 17 18 import java.io.IOException ; 19 20 import org.apache.cocoon.ProcessingException; 21 import org.apache.cocoon.environment.Redirector; 22 import org.apache.cocoon.webapps.authentication.user.RequestState; 23 import org.apache.cocoon.webapps.authentication.user.UserHandler; 24 import org.apache.cocoon.webapps.session.context.SessionContext; 25 import org.apache.excalibur.source.SourceParameters; 26 27 36 public interface AuthenticationManager { 37 38 39 String ROLE = AuthenticationManager.class.getName(); 40 41 45 UserHandler isAuthenticated(String handlerName) 46 throws ProcessingException; 47 48 53 boolean checkAuthentication(Redirector redirector, 54 String handlerName, 55 String applicationName) 56 throws ProcessingException, IOException ; 57 58 63 UserHandler login(String handlerName, 64 String applicationName, 65 SourceParameters parameters) 66 throws ProcessingException; 67 68 71 void logout(String handlerName, 72 int mode) 73 throws ProcessingException; 74 75 78 RequestState getState(); 79 80 84 SessionContext createApplicationContext(String name, 85 String loadURI, 86 String saveURI) 87 throws ProcessingException; 88 } 89 | Popular Tags |