1 16 package org.apache.cocoon.webapps.authentication.components; 17 18 import org.apache.cocoon.ProcessingException; 19 import org.apache.cocoon.webapps.authentication.configuration.HandlerConfiguration; 20 import org.apache.cocoon.webapps.authentication.user.UserHandler; 21 import org.apache.excalibur.source.SourceParameters; 22 import org.w3c.dom.Document ; 23 24 33 public interface Authenticator { 34 35 55 public static class AuthenticationResult { 56 57 public final boolean valid; 58 public final Document result; 59 60 public AuthenticationResult(final boolean valid, 61 final Document result) { 62 this.valid = valid; 63 this.result = result; 64 } 65 66 } 67 68 74 AuthenticationResult authenticate(HandlerConfiguration configuration, 75 SourceParameters parameters) 76 throws ProcessingException; 77 78 84 void logout(UserHandler handler); 85 } | Popular Tags |