more fixes
authordmorr <dmorr@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 20 Apr 2007 22:41:41 +0000 (22:41 +0000)
committerdmorr <dmorr@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 20 Apr 2007 22:41:41 +0000 (22:41 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2182 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/authn/impl/IPAddressHandler.java

index a56cda6..990828f 100644 (file)
@@ -44,8 +44,7 @@ import org.joda.time.DateTime;
  */
 public class IPAddressHandler implements AuthenticationHandler {
 
-       private static final Logger log = Logger.getLogger(IPAddressHandler.class
-                       .getName());
+       private static final Logger log = Logger.getLogger(IPAddressHandler.class.getName());
 
        /** the URI of the AuthnContextDeclRef or the AuthnContextClass */
        private String authnMethodURI;
@@ -110,13 +109,13 @@ public class IPAddressHandler implements AuthenticationHandler {
        public void login(HttpServletRequest request, HttpServletResponse response,
                        LoginContext loginCtx) {
 
-               loginContext.setAuthenticationAttempted();
-               loginContext.setAuthenticationInstant(new DateTime());
+               loginCtx.setAuthenticationAttempted();
+               loginCtx.setAuthenticationInstant(new DateTime());
 
                if (defaultDeny) {
-                       handleDefaultDeny(request, response, loginContext);
+                       handleDefaultDeny(request, response, loginCtx);
                } else {
-                       handleDefaultAllow(request, response, loginContext);
+                       handleDefaultAllow(request, response, loginCtx);
                }
        }
 
@@ -129,8 +128,7 @@ public class IPAddressHandler implements AuthenticationHandler {
                        loginCtx.setAuthenticationOK(true);
                } else {
                        loginCtx.setAuthenticationOK(false);
-                       loginCtx
-                                       .setAuthenticationFailureMessage("User's IP is not in the permitted list.");
+                       loginCtx.setAuthenticationFailureMessage("User's IP is not in the permitted list.");
                }
        }