1 23 24 package com.sun.enterprise.security.jauth; 25 26 import java.util.Map ; 27 import javax.security.auth.Subject ; 28 import javax.security.auth.login.Configuration ; 29 import javax.security.auth.callback.CallbackHandler ; 30 31 52 public interface ServerAuthModule { 53 54 72 void initialize(AuthPolicy requestPolicy, 73 AuthPolicy responsePolicy, 74 CallbackHandler handler, 75 Map options); 76 77 106 void validateRequest(AuthParam param, 107 Subject subject, 108 Map sharedState) 109 throws AuthException; 110 111 129 void secureResponse(AuthParam param, 130 Subject subject, 131 Map sharedState) 132 throws AuthException; 133 134 148 void disposeSubject(Subject subject, Map sharedState) 149 throws AuthException; 150 } 151 | Popular Tags |